From 3c2866ccb4f19d1f5bbab479b319269e0c37bbe8 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 22 Nov 2022 23:06:07 +0000 Subject: [PATCH 1/2] docs: Small change for documentation PiperOrigin-RevId: 490314741 Source-Link: https://github.com/googleapis/googleapis/commit/9247e23c08cb628ff7387338c872b5cd9efada28 Source-Link: https://github.com/googleapis/googleapis-gen/commit/40eb7b33539558db502c8bd83f2062b986f8a9c5 Copy-Tag: eyJwIjoiamF2YS1hc3NldC8uT3dsQm90LnlhbWwiLCJoIjoiNDBlYjdiMzM1Mzk1NThkYjUwMmM4YmQ4M2YyMDYyYjk4NmY4YTljNSJ9 --- .../cloud/asset/v1/AssetServiceGrpc.java | 2734 --------- .../asset/v1p1beta1/AssetServiceGrpc.java | 532 -- .../asset/v1p2beta1/AssetServiceGrpc.java | 799 --- ...IamPolicyLongrunningResponseOrBuilder.java | 24 - .../com/google/cloud/asset/v1/AssetProto.java | 620 -- .../cloud/asset/v1/AssetServiceProto.java | 1292 ---- .../BatchGetEffectiveIamPoliciesResponse.java | 4061 ------------- ...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 - ...amPolicyAnalysisOutputConfigOrBuilder.java | 110 - .../v1/IamPolicyAnalysisResultOrBuilder.java | 231 - .../cloud/asset/v1/MoveImpactOrBuilder.java | 50 - .../asset/v1/PartitionSpecOrBuilder.java | 50 - .../v1/QueryAssetsOutputConfigOrBuilder.java | 67 - .../cloud/asset/v1p1beta1/AssetProto.java | 163 - .../asset/v1p1beta1/AssetServiceProto.java | 150 - .../IamPolicySearchResultOrBuilder.java | 175 - .../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 | 244 +- .../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 | 393 +- ...IamPolicyLongrunningMetadataOrBuilder.java | 35 +- .../AnalyzeIamPolicyLongrunningRequest.java | 656 +- ...eIamPolicyLongrunningRequestOrBuilder.java | 76 +- .../AnalyzeIamPolicyLongrunningResponse.java | 271 +- ...IamPolicyLongrunningResponseOrBuilder.java | 9 + .../asset/v1/AnalyzeIamPolicyRequest.java | 635 +- .../v1/AnalyzeIamPolicyRequestOrBuilder.java | 76 +- .../asset/v1/AnalyzeIamPolicyResponse.java | 1712 ++---- .../v1/AnalyzeIamPolicyResponseOrBuilder.java | 91 +- .../cloud/asset/v1/AnalyzeMoveRequest.java | 537 +- .../asset/v1/AnalyzeMoveRequestOrBuilder.java | 42 +- .../cloud/asset/v1/AnalyzeMoveResponse.java | 448 +- .../v1/AnalyzeMoveResponseOrBuilder.java | 46 +- .../java/com/google/cloud/asset/v1/Asset.java | 1836 +++--- .../google/cloud/asset/v1/AssetOrBuilder.java | 226 +- .../com/google/cloud/asset/v1/AssetProto.java | 505 ++ .../cloud/asset/v1/AssetServiceProto.java | 1149 ++++ .../cloud/asset/v1/AttachedResource.java | 455 +- .../asset/v1/AttachedResourceOrBuilder.java | 45 +- .../v1/BatchGetAssetsHistoryRequest.java | 897 ++- ...BatchGetAssetsHistoryRequestOrBuilder.java | 129 +- .../v1/BatchGetAssetsHistoryResponse.java | 408 +- ...atchGetAssetsHistoryResponseOrBuilder.java | 36 +- .../BatchGetEffectiveIamPoliciesRequest.java | 553 +- ...tEffectiveIamPoliciesRequestOrBuilder.java | 75 +- .../BatchGetEffectiveIamPoliciesResponse.java | 3190 ++++++++++ ...EffectiveIamPoliciesResponseOrBuilder.java | 73 + .../cloud/asset/v1/BigQueryDestination.java | 633 +- .../v1/BigQueryDestinationOrBuilder.java | 72 +- .../cloud/asset/v1/ConditionEvaluation.java | 387 +- .../v1/ConditionEvaluationOrBuilder.java | 24 +- .../google/cloud/asset/v1/ContentType.java | 122 +- .../cloud/asset/v1/CreateFeedRequest.java | 531 +- .../asset/v1/CreateFeedRequestOrBuilder.java | 59 +- .../asset/v1/CreateSavedQueryRequest.java | 725 +-- .../v1/CreateSavedQueryRequestOrBuilder.java | 99 + .../cloud/asset/v1/DeleteFeedRequest.java | 352 +- .../asset/v1/DeleteFeedRequestOrBuilder.java | 35 + .../asset/v1/DeleteSavedQueryRequest.java | 376 +- .../v1/DeleteSavedQueryRequestOrBuilder.java | 35 + .../cloud/asset/v1/ExportAssetsRequest.java | 1029 ++-- .../v1/ExportAssetsRequestOrBuilder.java | 162 +- .../cloud/asset/v1/ExportAssetsResponse.java | 553 +- .../v1/ExportAssetsResponseOrBuilder.java | 54 +- .../java/com/google/cloud/asset/v1/Feed.java | 973 ++- .../com/google/cloud/asset/v1/FeedName.java | 0 .../google/cloud/asset/v1/FeedOrBuilder.java | 139 +- .../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 | 531 +- .../asset/v1/GcsDestinationOrBuilder.java | 60 +- .../cloud/asset/v1/GcsOutputResult.java | 378 +- .../asset/v1/GcsOutputResultOrBuilder.java | 44 +- .../google/cloud/asset/v1/GetFeedRequest.java | 345 +- .../asset/v1/GetFeedRequestOrBuilder.java | 35 + .../cloud/asset/v1/GetSavedQueryRequest.java | 348 +- .../v1/GetSavedQueryRequestOrBuilder.java | 35 + .../v1/IamPolicyAnalysisOutputConfig.java | 2256 +++---- ...amPolicyAnalysisOutputConfigOrBuilder.java | 65 + .../asset/v1/IamPolicyAnalysisQuery.java | 3809 +++++------- .../v1/IamPolicyAnalysisQueryOrBuilder.java | 156 +- .../asset/v1/IamPolicyAnalysisResult.java | 5284 ++++++----------- .../v1/IamPolicyAnalysisResultOrBuilder.java | 150 + .../asset/v1/IamPolicyAnalysisState.java | 377 +- .../v1/IamPolicyAnalysisStateOrBuilder.java | 33 +- .../cloud/asset/v1/IamPolicySearchResult.java | 2357 +++----- .../v1/IamPolicySearchResultOrBuilder.java | 195 +- .../cloud/asset/v1/ListAssetsRequest.java | 1040 ++-- .../asset/v1/ListAssetsRequestOrBuilder.java | 165 +- .../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 | 590 +- .../v1/ListSavedQueriesRequestOrBuilder.java | 69 +- .../asset/v1/ListSavedQueriesResponse.java | 486 +- .../v1/ListSavedQueriesResponseOrBuilder.java | 45 +- .../google/cloud/asset/v1/MoveAnalysis.java | 564 +- .../cloud/asset/v1/MoveAnalysisOrBuilder.java | 51 +- .../cloud/asset/v1/MoveAnalysisResult.java | 554 +- .../asset/v1/MoveAnalysisResultOrBuilder.java | 54 +- .../com/google/cloud/asset/v1/MoveImpact.java | 313 +- .../cloud/asset/v1/MoveImpactOrBuilder.java | 29 + .../cloud/asset/v1/OrganizationName.java | 0 .../google/cloud/asset/v1/OutputConfig.java | 537 +- .../cloud/asset/v1/OutputConfigOrBuilder.java | 52 +- .../google/cloud/asset/v1/OutputResult.java | 393 +- .../cloud/asset/v1/OutputResultOrBuilder.java | 32 +- .../google/cloud/asset/v1/PartitionSpec.java | 398 +- .../asset/v1/PartitionSpecOrBuilder.java | 28 + .../google/cloud/asset/v1/ProjectName.java | 168 + .../cloud/asset/v1/PubsubDestination.java | 320 +- .../asset/v1/PubsubDestinationOrBuilder.java | 27 +- .../asset/v1/QueryAssetsOutputConfig.java | 1140 ++-- .../v1/QueryAssetsOutputConfigOrBuilder.java | 36 + .../cloud/asset/v1/QueryAssetsRequest.java | 1541 ++--- .../asset/v1/QueryAssetsRequestOrBuilder.java | 221 +- .../cloud/asset/v1/QueryAssetsResponse.java | 678 +-- .../v1/QueryAssetsResponseOrBuilder.java | 54 +- .../google/cloud/asset/v1/QueryResult.java | 610 +- .../cloud/asset/v1/QueryResultOrBuilder.java | 57 +- .../google/cloud/asset/v1/RelatedAsset.java | 620 +- .../cloud/asset/v1/RelatedAssetOrBuilder.java | 71 +- .../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 | 859 ++- .../cloud/asset/v1/ResourceOrBuilder.java | 100 +- .../cloud/asset/v1/ResourceSearchResult.java | 3096 ++++------ .../v1/ResourceSearchResultOrBuilder.java | 446 +- .../com/google/cloud/asset/v1/SavedQuery.java | 1688 +++--- .../google/cloud/asset/v1/SavedQueryName.java | 0 .../cloud/asset/v1/SavedQueryOrBuilder.java | 136 +- .../asset/v1/SearchAllIamPoliciesRequest.java | 1417 ++--- .../SearchAllIamPoliciesRequestOrBuilder.java | 282 +- .../v1/SearchAllIamPoliciesResponse.java | 606 +- ...SearchAllIamPoliciesResponseOrBuilder.java | 70 +- .../asset/v1/SearchAllResourcesRequest.java | 1446 ++--- .../SearchAllResourcesRequestOrBuilder.java | 267 +- .../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 | 399 +- .../cloud/asset/v1/TableSchemaOrBuilder.java | 36 +- .../google/cloud/asset/v1/TemporalAsset.java | 702 +-- .../asset/v1/TemporalAssetOrBuilder.java | 57 +- .../com/google/cloud/asset/v1/TimeWindow.java | 391 +- .../cloud/asset/v1/TimeWindowOrBuilder.java | 34 +- .../cloud/asset/v1/UpdateFeedRequest.java | 485 +- .../asset/v1/UpdateFeedRequestOrBuilder.java | 55 +- .../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 | 833 ++- .../proto/google/cloud/asset/v1/assets.proto | 210 +- .../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 .../v1/assetservice/getfeed/AsyncGetFeed.java | 0 .../v1/assetservice/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 .../assetservice/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 | 76 +- .../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 | 429 ++ .../cloud/asset/v1p1beta1/AssetProto.java | 129 + .../asset/v1p1beta1/AssetServiceProto.java | 132 + .../v1p1beta1/IamPolicySearchResult.java | 1431 ++--- .../IamPolicySearchResultOrBuilder.java | 127 + .../cloud/asset/v1p1beta1/Permissions.java | 352 +- .../asset/v1p1beta1/PermissionsOrBuilder.java | 36 +- .../SearchAllIamPoliciesRequest.java | 648 +- .../SearchAllIamPoliciesRequestOrBuilder.java | 81 +- .../SearchAllIamPoliciesResponse.java | 600 +- ...SearchAllIamPoliciesResponseOrBuilder.java | 70 +- .../v1p1beta1/SearchAllResourcesRequest.java | 929 ++- .../SearchAllResourcesRequestOrBuilder.java | 140 +- .../v1p1beta1/SearchAllResourcesResponse.java | 490 +- .../SearchAllResourcesResponseOrBuilder.java | 45 +- .../v1p1beta1/StandardResourceMetadata.java | 1271 ++-- .../StandardResourceMetadataOrBuilder.java | 166 +- .../cloud/asset/v1p1beta1/asset_service.proto | 87 +- .../google/cloud/asset/v1p1beta1/assets.proto | 38 +- .../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 | 665 +-- .../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 | 515 +- .../v1p2beta1/CreateFeedRequestOrBuilder.java | 53 +- .../asset/v1p2beta1/DeleteFeedRequest.java | 359 +- .../v1p2beta1/DeleteFeedRequestOrBuilder.java | 35 + .../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 | 35 + .../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 .../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 .../assetservice/getfeed/AsyncGetFeed.java | 0 .../assetservice/getfeed/SyncGetFeed.java | 0 .../getfeed/SyncGetFeedFeedname.java | 0 .../getfeed/SyncGetFeedString.java | 0 .../listfeeds/AsyncListFeeds.java | 0 .../assetservice/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 | 1196 ++-- .../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 | 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 .../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 | 1373 ++--- .../cloud/asset/v1p7beta1/AssetOrBuilder.java | 134 +- .../cloud/asset/v1p7beta1/AssetProto.java | 160 + .../asset/v1p7beta1/AssetServiceProto.java | 203 + .../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 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../exportassets/AsyncExportAssets.java | 0 .../exportassets/AsyncExportAssetsLRO.java | 0 .../exportassets/SyncExportAssets.java | 0 .../exportassets/SyncExportAssets.java | 0 .../exportassets/SyncExportAssets.java | 0 470 files changed, 44348 insertions(+), 67790 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-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/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/IamPolicyAnalysisOutputConfigOrBuilder.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/PartitionSpecOrBuilder.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-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.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 (92%) 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 (61%) 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 (65%) 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 (58%) 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 (70%) 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 (67%) 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 (72%) 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 (67%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeMoveResponseOrBuilder.java (56%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/Asset.java (72%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetOrBuilder.java (78%) 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 (76%) 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 (72%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryRequestOrBuilder.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetAssetsHistoryResponse.java (70%) 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 (66%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesRequestOrBuilder.java (64%) 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 (78%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BigQueryDestinationOrBuilder.java (82%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ConditionEvaluation.java (67%) 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 (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/CreateFeedRequest.java (71%) 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 (58%) 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 (62%) 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 (63%) 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 (74%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ExportAssetsRequestOrBuilder.java (77%) 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 (72%) 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 (85%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/FeedOutputConfig.java (68%) 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 (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GcsDestinationOrBuilder.java (71%) 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 (51%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/GetFeedRequest.java (63%) 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 (64%) 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 (57%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQuery.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisQueryOrBuilder.java (53%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisResult.java (67%) 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 (70%) 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 (64%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicySearchResultOrBuilder.java (59%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequest.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsRequestOrBuilder.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ListAssetsResponse.java (72%) 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 (67%) 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 (68%) 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 (69%) 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 (71%) 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 (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisOrBuilder.java (66%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/MoveAnalysisResult.java (77%) 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 (64%) 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 (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputConfigOrBuilder.java (57%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResult.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/OutputResultOrBuilder.java (53%) 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%) create mode 100644 owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java 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 (65%) 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 (60%) 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 (65%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/QueryAssetsResponse.java (73%) 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 (70%) 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 (76%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/RelatedAssets.java (71%) 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 (68%) 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 (72%) 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 (70%) 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 (72%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceOrBuilder.java (74%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResult.java (80%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ResourceSearchResultOrBuilder.java (87%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SavedQuery.java (64%) 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 (59%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesRequestOrBuilder.java (53%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponse.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllIamPoliciesResponseOrBuilder.java (52%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequest.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesRequestOrBuilder.java (69%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/SearchAllResourcesResponse.java (73%) 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 (74%) 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 (70%) 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 (71%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TemporalAssetOrBuilder.java (77%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/TimeWindow.java (70%) 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 (70%) 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 (66%) 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 (75%) 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 (72%) rename {java-asset => owl-bot-staging/java-asset/v1}/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto (82%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/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 (89%) 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%) create mode 100644 owl-bot-staging/java-asset/v1p1beta1/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java 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 (59%) create mode 100644 owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/Permissions.java (67%) 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 (64%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesRequestOrBuilder.java (58%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponse.java (63%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllIamPoliciesResponseOrBuilder.java (52%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequest.java (65%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesRequestOrBuilder.java (58%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/SearchAllResourcesResponse.java (72%) 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 (70%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/StandardResourceMetadataOrBuilder.java (76%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/asset_service.proto (64%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/proto-google-cloud-asset-v1p1beta1/src/main/proto/google/cloud/asset/v1p1beta1/assets.proto (73%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p1beta1}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/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 (75%) 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 (72%) 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 (62%) 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 (76%) 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 (67%) 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 (68%) 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 (63%) 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 (67%) 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 (69%) 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 (68%) 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 (65%) 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 (75%) 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 (68%) 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 (70%) 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 (70%) 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/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p2beta1}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/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 (74%) 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 (77%) 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 (72%) 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 (75%) 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/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p5beta1}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/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 (79%) 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 (81%) 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 (78%) 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 (73%) 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 (74%) 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 (67%) 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 (70%) 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 (67%) 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 (68%) 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 (75%) 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 (70%) 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 (69%) 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 (75%) 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%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java (100%) rename {java-asset => owl-bot-staging/java-asset/v1p7beta1}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.java (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 9aa664b46070..000000000000 --- a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java +++ /dev/null @@ -1,2734 +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 {{storage_name}}
-     * location/{{bigquery_name}} table. For {{storage_name}} 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_name}} 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 {{gcp_name}} 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_name_short}} 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_name_short}} 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_name_short}} policies asynchronously to answer which
-     * identities have what accesses on which resources, and writes the analysis
-     * results to a Google
-     * {{storage_name}} or a {{bigquery_name}} destination. For {{storage_name}}
-     * 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_name}} 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_name}}
-     * 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_name_short}} 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 {{storage_name}}
-     * location/{{bigquery_name}} table. For {{storage_name}} 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_name}} 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 {{gcp_name}} 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_name_short}} 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_name_short}} 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_name_short}} policies asynchronously to answer which
-     * identities have what accesses on which resources, and writes the analysis
-     * results to a Google
-     * {{storage_name}} or a {{bigquery_name}} destination. For {{storage_name}}
-     * 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_name}} 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_name}}
-     * 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_name_short}} 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 {{storage_name}}
-     * location/{{bigquery_name}} table. For {{storage_name}} 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_name}} 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 {{gcp_name}} 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_name_short}} 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_name_short}} 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_name_short}} policies asynchronously to answer which
-     * identities have what accesses on which resources, and writes the analysis
-     * results to a Google
-     * {{storage_name}} or a {{bigquery_name}} destination. For {{storage_name}}
-     * 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_name}} 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_name}}
-     * 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_name_short}} 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 {{storage_name}}
-     * location/{{bigquery_name}} table. For {{storage_name}} 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_name}} 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 {{gcp_name}} 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_name_short}} 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_name_short}} 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_name_short}} policies asynchronously to answer which
-     * identities have what accesses on which resources, and writes the analysis
-     * results to a Google
-     * {{storage_name}} or a {{bigquery_name}} destination. For {{storage_name}}
-     * 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_name}} 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_name}}
-     * 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_name_short}} 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-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 deleted file mode 100644 index e84975c42326..000000000000 --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java +++ /dev/null @@ -1,532 +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.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Asset service definition.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/asset/v1p1beta1/asset_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AssetServiceGrpc { - - 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; - - @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; - 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(); - } - } - } - return getSearchAllResourcesMethod; - } - - 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< - 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(); - } - } - } - return getSearchAllIamPoliciesMethod; - } - - /** 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 { - - /** - * - * - *
-     * Searches all the resources under a given accessible {{crm_name}} scope
-     * (project/folder/organization). This RPC gives callers
-     * especially admins the ability to search all the resources under a scope,
-     * even if they don't have .get permission of all the resources. Callers
-     * should have cloud.assets.SearchAllResources permission on the requested
-     * 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); - } - - /** - * - * - *
-     * Searches all the {{iam_name_short}} policies under a given accessible
-     * {{crm_name}} scope (project/folder/organization). This RPC gives callers
-     * especially admins the ability to search all the {{iam_name_short}} policies
-     * under a scope, even if they don't have .getIamPolicy permission of all the
-     * {{iam_name_short}} policies. Callers should have
-     * cloud.assets.SearchAllIamPolicies permission on the 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); - } - - @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))) - .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))) - .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); - } - - /** - * - * - *
-     * Searches all the resources under a given accessible {{crm_name}} scope
-     * (project/folder/organization). This RPC gives callers
-     * especially admins the ability to search all the resources under a scope,
-     * even if they don't have .get permission of all the resources. Callers
-     * should have cloud.assets.SearchAllResources permission on the requested
-     * scope, otherwise it will be rejected.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Searches all the {{iam_name_short}} policies under a given accessible
-     * {{crm_name}} scope (project/folder/organization). This RPC gives callers
-     * especially admins the ability to search all the {{iam_name_short}} policies
-     * under a scope, even if they don't have .getIamPolicy permission of all the
-     * {{iam_name_short}} policies. Callers should have
-     * cloud.assets.SearchAllIamPolicies permission on the 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.ClientCalls.asyncUnaryCall( - 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches all the resources under a given accessible {{crm_name}} scope
-     * (project/folder/organization). This RPC gives callers
-     * especially admins the ability to search all the resources under a scope,
-     * even if they don't have .get permission of all the resources. Callers
-     * should have cloud.assets.SearchAllResources permission on the requested
-     * scope, otherwise it will be rejected.
-     * 
- */ - 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_name_short}} policies under a given accessible
-     * {{crm_name}} scope (project/folder/organization). This RPC gives callers
-     * especially admins the ability to search all the {{iam_name_short}} policies
-     * under a scope, even if they don't have .getIamPolicy permission of all the
-     * {{iam_name_short}} policies. Callers should have
-     * cloud.assets.SearchAllIamPolicies permission on the requested scope,
-     * otherwise it will be rejected.
-     * 
- */ - 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected AssetServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AssetServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches all the resources under a given accessible {{crm_name}} scope
-     * (project/folder/organization). This RPC gives callers
-     * especially admins the ability to search all the resources under a scope,
-     * even if they don't have .get permission of all the resources. Callers
-     * should have cloud.assets.SearchAllResources permission on the requested
-     * 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchAllResourcesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Searches all the {{iam_name_short}} policies under a given accessible
-     * {{crm_name}} scope (project/folder/organization). This RPC gives callers
-     * especially admins the ability to search all the {{iam_name_short}} policies
-     * under a scope, even if they don't have .getIamPolicy permission of all the
-     * {{iam_name_short}} policies. Callers should have
-     * cloud.assets.SearchAllIamPolicies permission on the 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchAllIamPoliciesMethod(), getCallOptions()), request); - } - } - - 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 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_SEARCH_ALL_RESOURCES: - 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< - com.google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse>) - 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.v1p1beta1.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(getSearchAllResourcesMethod()) - .addMethod(getSearchAllIamPoliciesMethod()) - .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 8b4f37133004..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetProto.java +++ /dev/null @@ -1,620 +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\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 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 cfba1b40c72f..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/BatchGetEffectiveIamPoliciesResponse.java +++ /dev/null @@ -1,4061 +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; - } - - 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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< - 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)); - } - 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_name_short}} 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< - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.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< - 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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< - 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.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/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 dcdfbf19123b..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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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_name_short}} 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/IamPolicyAnalysisOutputConfigOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java deleted file mode 100644 index 0b0e6603d443..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java +++ /dev/null @@ -1,110 +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 IamPolicyAnalysisOutputConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.IamPolicyAnalysisOutputConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Destination on {{storage_name}}.
-   * 
- * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - * - * @return Whether the gcsDestination field is set. - */ - boolean hasGcsDestination(); - /** - * - * - *
-   * Destination on {{storage_name}}.
-   * 
- * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - * - * @return The gcsDestination. - */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination getGcsDestination(); - /** - * - * - *
-   * Destination on {{storage_name}}.
-   * 
- * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination gcs_destination = 1; - * - */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder - getGcsDestinationOrBuilder(); - - /** - * - * - *
-   * Destination on {{bigquery_name}}.
-   * 
- * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - * - * @return Whether the bigqueryDestination field is set. - */ - boolean hasBigqueryDestination(); - /** - * - * - *
-   * Destination on {{bigquery_name}}.
-   * 
- * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - * - * @return The bigqueryDestination. - */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination - getBigqueryDestination(); - /** - * - * - *
-   * Destination on {{bigquery_name}}.
-   * 
- * - * - * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; - * - */ - com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder(); - - 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/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 9a35d66fb74a..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 {{iam_name_short}} policy binding under analysis.
-   * 
- * - * .google.iam.v1.Binding iam_binding = 2; - * - * @return Whether the iamBinding field is set. - */ - boolean hasIamBinding(); - /** - * - * - *
-   * The {{iam_name_short}} policy binding under analysis.
-   * 
- * - * .google.iam.v1.Binding iam_binding = 2; - * - * @return The iamBinding. - */ - com.google.iam.v1.Binding getIamBinding(); - /** - * - * - *
-   * The {{iam_name_short}} 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/PartitionSpecOrBuilder.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java deleted file mode 100644 index 1df71e67b493..000000000000 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.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 PartitionSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.PartitionSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The partition key for {{bigquery_name}} 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_name}} 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/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 32c5331e4e07..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_name}} 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_name}} 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_name}} 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-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 deleted file mode 100644 index c55761f20a73..000000000000 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java +++ /dev/null @@ -1,175 +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 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)
-   * of the resource associated with this {{iam_name_short}} policy.
-   * 
- * - * 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)
-   * of the resource associated with this {{iam_name_short}} policy.
-   * 
- * - * string resource = 1; - * - * @return The bytes for resource. - */ - com.google.protobuf.ByteString getResourceBytes(); - - /** - * - * - *
-   * The project that the associated {{gcp_name}} resource belongs to, in the
-   * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-   * on a resource (like VM instance, {{storage_name}} bucket), the project
-   * field will indicate the project that contains the resource. If an
-   * {{iam_name_short}} policy is set on a folder or orgnization, the project
-   * field will be empty.
-   * 
- * - * string project = 3; - * - * @return The project. - */ - java.lang.String getProject(); - /** - * - * - *
-   * The project that the associated {{gcp_name}} resource belongs to, in the
-   * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-   * on a resource (like VM instance, {{storage_name}} bucket), the project
-   * field will indicate the project that contains the resource. If an
-   * {{iam_name_short}} policy is set on a folder or orgnization, the project
-   * field will be empty.
-   * 
- * - * string project = 3; - * - * @return The bytes for project. - */ - com.google.protobuf.ByteString getProjectBytes(); - - /** - * - * - *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g. an empty query), this contains
-   * all the bindings.
-   * 
- * - * .google.iam.v1.Policy policy = 4; - * - * @return Whether the policy field is set. - */ - boolean hasPolicy(); - /** - * - * - *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g. an empty query), this contains
-   * all the bindings.
-   * 
- * - * .google.iam.v1.Policy policy = 4; - * - * @return The policy. - */ - com.google.iam.v1.Policy getPolicy(); - /** - * - * - *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g. an empty query), this contains
-   * all the bindings.
-   * 
- * - * .google.iam.v1.Policy policy = 4; - */ - com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); - - /** - * - * - *
-   * Explanation about the {{iam_name_short}} 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_name_short}} 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_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
-   * 
- * - * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; - */ - com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.ExplanationOrBuilder - getExplanationOrBuilder(); -} 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 92% 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 364922b2de31..fd84de5a1aae 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 @@ -211,15 +211,14 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports assets with time and resource types to a given {{storage_name}} - * location/{{bigquery_name}} table. For {{storage_name}} 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_name}} 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. + * 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. * *

Sample code: * @@ -253,15 +252,14 @@ public final OperationFuture exportAs // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports assets with time and resource types to a given {{storage_name}} - * location/{{bigquery_name}} table. For {{storage_name}} 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_name}} 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. + * 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. * *

Sample code: * @@ -295,15 +293,14 @@ public final OperationFuture exportAs // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Exports assets with time and resource types to a given {{storage_name}} - * location/{{bigquery_name}} table. For {{storage_name}} 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_name}} 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. + * 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. * *

Sample code: * @@ -512,7 +509,7 @@ public final UnaryCallable listAssetsCall // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 + * 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. @@ -549,7 +546,7 @@ public final BatchGetAssetsHistoryResponse batchGetAssetsHistory( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 + * 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. @@ -1062,7 +1059,7 @@ public final UnaryCallable deleteFeedCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all {{gcp_name}} resources within the specified scope, such as a project, folder, or + * 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. * @@ -1103,45 +1100,42 @@ public final UnaryCallable deleteFeedCallable() { * the specified `scope`. *

Examples: *

    - *
  • `name:Important` to find {{gcp_name}} resources whose name contains "Important" as a - * word. - *
  • `name=Important` to find the {{gcp_name}} resource whose name is exactly "Important". - *
  • `displayName:Impor*` to find {{gcp_name}} resources whose display name contains - * "Impor" as a prefix of any word in the field. - *
  • `location:us-west*` to find {{gcp_name}} resources whose location contains both - * "us" and "west" as prefixes. - *
  • `labels:prod` to find {{gcp_name}} resources whose labels contain "prod" as a key or - * value. - *
  • `labels.env:prod` to find {{gcp_name}} resources that have a label "env" and its - * value is "prod". - *
  • `labels.env:*` to find {{gcp_name}} resources that have a label "env". - *
  • `kmsKey:key` to find {{gcp_name}} 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 {{gcp_name}} resources encrypted with customer-managed - * encryption keys whose name contains the word "key". - *
  • `relationships:instance-group-1` to find {{gcp_name}} resources that have - * relationships with "instance-group-1" in the related resource name. + *
  • `name:Important` to find Cloud resources whose name contains "Important" as a word. + *
  • `name=Important` to find the Cloud resource whose name is exactly "Important". + *
  • `displayName:Impor*` to find Cloud resources whose display name contains "Impor" + * as a prefix of any word in the field. + *
  • `location:us-west*` to find Cloud resources whose location contains both "us" and + * "west" as prefixes. + *
  • `labels:prod` to find Cloud resources whose labels contain "prod" as a key or value. + *
  • `labels.env:prod` to find Cloud resources that have a label "env" 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 "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 have * relationships of type "INSTANCE_TO_INSTANCEGROUP". *
  • `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find compute instances * that have relationships with "instance-group-1" in the compute instance group * resource name, for relationship type "INSTANCE_TO_INSTANCEGROUP". - *
  • `state:ACTIVE` to find {{gcp_name}} resources whose state contains "ACTIVE" as a + *
  • `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a word. + *
  • `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain "ACTIVE" as a * word. - *
  • `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't contain - * "ACTIVE" as a word. - *
  • `createTime<1609459200` to find {{gcp_name}} resources that were created before + *
  • `createTime<1609459200` to find Cloud resources that were created before * "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:00:00 * UTC" in seconds. - *
  • `updateTime>1609459200` to find {{gcp_name}} resources that were updated after + *
  • `updateTime>1609459200` to find Cloud resources that were updated after * "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:00:00 * UTC" in seconds. - *
  • `Important` to find {{gcp_name}} resources that contain "Important" as a word in any - * of the searchable fields. - *
  • `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix of any - * word in any of the searchable fields. - *
  • `Important location:(us-west1 OR global)` to find {{gcp_name}} resources that contain + *
  • `Important` to find Cloud resources that contain "Important" as a word in any of the + * searchable fields. + *
  • `Impor*` to find Cloud resources that contain "Impor" as a prefix of any word in + * any of the searchable fields. + *
  • `Important location:(us-west1 OR global)` to find Cloud resources that contain * "Important" as a word in any of the searchable fields and are also located in the * "us-west1" region or the "global" location. *
@@ -1174,7 +1168,7 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all {{gcp_name}} resources within the specified scope, such as a project, folder, or + * 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. * @@ -1214,7 +1208,7 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all {{gcp_name}} resources within the specified scope, such as a project, folder, or + * 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. * @@ -1253,7 +1247,7 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all {{gcp_name}} resources within the specified scope, such as a project, folder, or + * 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. * @@ -1299,8 +1293,8 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all {{iam_name_short}} policies within the specified scope, such as a project, folder, - * or organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` + * 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. * *

Sample code: @@ -1322,8 +1316,7 @@ public final SearchAllResourcesPagedResponse searchAllResources( * } * * @param scope Required. A scope can be a project, a folder, or an organization. The search is - * limited to the {{iam_name_short}} policies within the `scope`. The caller must be granted - * the + * 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: @@ -1336,42 +1329,40 @@ public final SearchAllResourcesPagedResponse searchAllResources( * * @param 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) - * for more information. If not specified or empty, it will search all the {{iam_name_short}} - * policies within the specified `scope`. Note that the query string is compared against each - * {{iam_name_short}} policy binding, including its principals, roles, and {{iam_name_short}} - * conditions. The returned {{iam_name_short}} policies will only contain the bindings that - * match your query. To learn more about the {{iam_name_short}} policy structure, see the - * [{{iam_name_short}} policy + * for more information. If not specified or empty, it will search all the IAM policies within + * the specified `scope`. Note that the query string is compared against each Cloud IAM policy + * binding, including its principals, roles, and Cloud IAM conditions. The returned Cloud IAM + * policies will only contain the bindings that match your query. To learn more about the IAM + * policy structure, see the [IAM policy * documentation](https://cloud.google.com/iam/help/allow-policies/structure). *

Examples: *

    - *
  • `policy:amy{@literal @}gmail.com` to find {{iam_name_short}} policy bindings that - * specify user "amy{@literal @}gmail.com". - *
  • `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings that specify - * the Compute Admin role. - *
  • `policy:comp*` to find {{iam_name_short}} policy bindings that contain "comp" as - * a prefix of any word in the binding. - *
  • `policy.role.permissions:storage.buckets.update` to find {{iam_name_short}} policy - * bindings that specify a role containing "storage.buckets.update" permission. Note - * that if callers don't have `iam.roles.get` access to a role's included permissions, - * policy bindings that specify this role will be dropped from the search results. - *
  • `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings that - * specify a role containing "upd" as a prefix of any word in the role permission. Note - * that if callers don't have `iam.roles.get` access to a role's included permissions, - * policy bindings that specify this role will be dropped from the search results. - *
  • `resource:organizations/123456` to find {{iam_name_short}} policy bindings that are - * set on "organizations/123456". - *
  • `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to find - * {{iam_name_short}} policy bindings that are set on the project named "myproject". - *
  • `Important` to find {{iam_name_short}} policy bindings that contain "Important" as a - * word in any of the searchable fields (except for the included permissions). - *
  • `resource:(instance1 OR instance2) policy:amy` to find {{iam_name_short}} policy - * bindings that are set on resources "instance1" or "instance2" and also specify user - * "amy". - *
  • `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings that specify - * the Compute Admin role. - *
  • `memberTypes:user` to find {{iam_name_short}} policy bindings that contain the - * principal type "user". + *
  • `policy:amy{@literal @}gmail.com` to find IAM policy bindings that specify user + * "amy{@literal @}gmail.com". + *
  • `policy:roles/compute.admin` to find IAM policy bindings that specify the Compute + * Admin role. + *
  • `policy:comp*` to find IAM policy bindings that contain "comp" as a prefix of any + * word in the binding. + *
  • `policy.role.permissions:storage.buckets.update` to find IAM policy bindings that + * specify a role containing "storage.buckets.update" permission. Note that if callers + * don't have `iam.roles.get` access to a role's included permissions, policy bindings + * that specify this role will be dropped from the search results. + *
  • `policy.role.permissions:upd*` to find IAM policy bindings that specify a role + * containing "upd" as a prefix of any word in the role permission. Note that if callers + * don't have `iam.roles.get` access to a role's included permissions, policy bindings + * that specify this role will be dropped from the search results. + *
  • `resource:organizations/123456` to find IAM policy bindings that are set on + * "organizations/123456". + *
  • `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to find IAM + * policy bindings that are set on the project named "myproject". + *
  • `Important` to find IAM policy bindings that contain "Important" as a word in any of + * the searchable fields (except for the included permissions). + *
  • `resource:(instance1 OR instance2) policy:amy` to find IAM policy bindings that are + * set on resources "instance1" or "instance2" and also specify user "amy". + *
  • `roles:roles/compute.admin` to find IAM policy bindings that specify the Compute + * Admin role. + *
  • `memberTypes:user` to find IAM policy bindings that contain the principal type + * "user". *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1384,8 +1375,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all {{iam_name_short}} policies within the specified scope, such as a project, folder, - * or organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` + * 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. * *

Sample code: @@ -1423,8 +1414,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all {{iam_name_short}} policies within the specified scope, such as a project, folder, - * or organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` + * 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. * *

Sample code: @@ -1461,8 +1452,8 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all {{iam_name_short}} policies within the specified scope, such as a project, folder, - * or organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` + * 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. * *

Sample code: @@ -1506,8 +1497,7 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Analyzes {{iam_name_short}} policies to answer which identities have what accesses on which - * resources. + * Analyzes IAM policies to answer which identities have what accesses on which resources. * *

Sample code: * @@ -1537,8 +1527,7 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Analyzes {{iam_name_short}} policies to answer which identities have what accesses on which - * resources. + * Analyzes IAM policies to answer which identities have what accesses on which resources. * *

Sample code: * @@ -1569,10 +1558,9 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Analyzes {{iam_name_short}} policies asynchronously to answer which identities have what - * accesses on which resources, and writes the analysis results to a Google {{storage_name}} or a - * {{bigquery_name}} destination. For {{storage_name}} destination, the output format is the JSON - * format that represents a + * 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 @@ -1610,10 +1598,9 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Analyzes {{iam_name_short}} policies asynchronously to answer which identities have what - * accesses on which resources, and writes the analysis results to a Google {{storage_name}} or a - * {{bigquery_name}} destination. For {{storage_name}} destination, the output format is the JSON - * format that represents a + * 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 @@ -1653,10 +1640,9 @@ public final AnalyzeIamPolicyResponse analyzeIamPolicy(AnalyzeIamPolicyRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Analyzes {{iam_name_short}} policies asynchronously to answer which identities have what - * accesses on which resources, and writes the analysis results to a Google {{storage_name}} or a - * {{bigquery_name}} destination. For {{storage_name}} destination, the output format is the JSON - * format that represents a + * 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 @@ -1756,8 +1742,8 @@ public final UnaryCallable analyzeMoveC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Issue a job that queries assets using a SQL statement compatible with [{{bigquery_name}} - * Standard SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql). + * 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`. @@ -1765,7 +1751,7 @@ public final UnaryCallable analyzeMoveC *

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_name}} + *

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. * @@ -1799,8 +1785,8 @@ public final QueryAssetsResponse queryAssets(QueryAssetsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Issue a job that queries assets using a SQL statement compatible with [{{bigquery_name}} - * Standard SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql). + * 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`. @@ -1808,7 +1794,7 @@ public final QueryAssetsResponse queryAssets(QueryAssetsRequest request) { *

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_name}} + *

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. * @@ -2658,7 +2644,7 @@ public final UnaryCallable deleteSavedQueryCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets effective {{iam_name_short}} policies for a batch of resources. + * Gets effective IAM policies for a batch of resources. * *

Sample code: * @@ -2689,7 +2675,7 @@ public final BatchGetEffectiveIamPoliciesResponse batchGetEffectiveIamPolicies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets effective {{iam_name_short}} policies for a batch of resources. + * Gets effective IAM policies for a batch of resources. * *

Sample code: * 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 a739b71decc0..23a239de069b 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 61% 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 71e8cf0b188d..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,58 +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;
   }
-
-  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 @@ -87,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 @@ -103,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() { @@ -118,7 +87,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +98,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -144,7 +113,8 @@ 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; @@ -154,17 +124,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; @@ -187,104 +157,96 @@ 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.
@@ -292,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -331,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();
     }
 
@@ -353,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 {
@@ -368,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;
@@ -408,9 +368,7 @@ 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());
       }
@@ -440,19 +398,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) {
@@ -465,58 +423,39 @@ 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) { @@ -532,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(); @@ -553,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; } @@ -579,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) { @@ -601,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); } @@ -675,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(); } @@ -690,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -725,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 65% 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 b737684f408f..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,87 +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; } - - 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 @@ -89,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() { @@ -126,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
@@ -145,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 @@ -154,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
@@ -180,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 { @@ -199,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 @@ -217,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; @@ -267,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()); } @@ -287,10 +227,12 @@ 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_); @@ -303,22 +245,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.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; @@ -347,137 +291,129 @@ 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].
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,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(); } @@ -521,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 { @@ -542,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; @@ -582,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()); } @@ -621,31 +552,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) { @@ -658,58 +589,39 @@ 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) { @@ -725,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) { @@ -747,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; } @@ -775,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) { @@ -797,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_; @@ -862,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
@@ -881,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; @@ -896,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
@@ -915,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 { @@ -930,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
@@ -949,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
@@ -982,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
@@ -1011,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; @@ -1028,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) { @@ -1098,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) { @@ -1121,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; } @@ -1151,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) { @@ -1174,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); } @@ -1253,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(); } @@ -1268,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1303,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 58% 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 8265b9f5296d..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,75 +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; } - - 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; @@ -81,7 +59,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 { getUnknownFields().writeTo(output); } @@ -99,13 +78,12 @@ 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; @@ -124,137 +102,129 @@ 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].
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -262,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(); } @@ -284,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; } @@ -294,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; @@ -334,9 +301,7 @@ 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; @@ -363,13 +328,12 @@ 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) { @@ -379,9 +343,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); } @@ -391,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(); } @@ -406,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -441,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 70% 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 8056eb3c3b97..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,86 +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; } - - 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 @@ -88,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() { @@ -125,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
@@ -144,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 @@ -153,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
@@ -179,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 { @@ -198,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
@@ -212,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 @@ -223,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
@@ -237,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
@@ -264,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() { @@ -274,7 +216,6 @@ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,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()); } @@ -306,10 +248,12 @@ 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_); @@ -322,22 +266,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.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; @@ -366,136 +312,129 @@ 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].
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -517,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 @@ -538,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 { @@ -559,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; @@ -599,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()); } @@ -637,32 +573,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( - 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) { @@ -675,58 +610,39 @@ 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) { @@ -742,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) { @@ -764,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; } @@ -792,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) { @@ -814,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_; @@ -879,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
@@ -898,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; @@ -913,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
@@ -932,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 { @@ -947,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
@@ -966,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
@@ -999,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
@@ -1028,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; @@ -1045,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
@@ -1064,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
@@ -1088,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
@@ -1118,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) { @@ -1136,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
@@ -1150,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(); @@ -1165,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
@@ -1179,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; } @@ -1201,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
@@ -1215,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) { @@ -1231,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
@@ -1245,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
@@ -1269,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
@@ -1297,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); } @@ -1329,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(); } @@ -1343,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1378,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 67% 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 a4c0819a8391..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,105 +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; } - - 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.
      * 
@@ -109,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; @@ -172,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.
      * 
@@ -207,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.
      * 
@@ -217,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.
      * 
@@ -240,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(); @@ -265,41 +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; } - - 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 @@ -307,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.
      * 
@@ -340,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; @@ -387,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; @@ -402,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; @@ -421,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 @@ -441,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.
      * 
@@ -450,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.
      * 
@@ -464,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.
      * 
@@ -482,8 +385,6 @@ public int getNonCriticalErrorsCount() { return nonCriticalErrors_.size(); } /** - * - * *
      * A list of non-critical errors happened during the query handling.
      * 
@@ -495,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.
      * 
@@ -510,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; @@ -522,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()); } @@ -545,18 +444,20 @@ 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; @@ -566,21 +467,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.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; } @@ -601,7 +505,8 @@ 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(); @@ -612,95 +517,87 @@ 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 @@ -710,42 +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() - private Builder() {} + // Construct using com.google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -775,22 +669,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_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); } @@ -799,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_; @@ -834,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()); } @@ -902,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_); } @@ -932,10 +814,9 @@ 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_); } @@ -967,53 +848,50 @@ 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) { @@ -1023,52 +901,38 @@ 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.
        * 
@@ -1089,8 +953,6 @@ public Builder setAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQuery return this; } /** - * - * *
        * The analysis query.
        * 
@@ -1109,8 +971,6 @@ public Builder setAnalysisQuery( return this; } /** - * - * *
        * The analysis query.
        * 
@@ -1121,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; } @@ -1135,8 +993,6 @@ public Builder mergeAnalysisQuery(com.google.cloud.asset.v1.IamPolicyAnalysisQue return this; } /** - * - * *
        * The analysis query.
        * 
@@ -1155,8 +1011,6 @@ public Builder clearAnalysisQuery() { return this; } /** - * - * *
        * The analysis query.
        * 
@@ -1164,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.
        * 
@@ -1181,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.
        * 
@@ -1196,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 { @@ -1250,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; @@ -1268,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; @@ -1286,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; @@ -1311,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; @@ -1333,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; @@ -1357,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; @@ -1382,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; @@ -1404,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; @@ -1426,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; @@ -1440,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); @@ -1448,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; @@ -1469,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; @@ -1490,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; @@ -1505,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; @@ -1518,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 { @@ -1543,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(), @@ -1610,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 @@ -1629,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 { @@ -1705,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) { @@ -1722,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) { @@ -1739,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) { @@ -1763,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) { @@ -1784,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) { @@ -1807,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) { @@ -1831,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) { @@ -1852,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) { @@ -1873,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); @@ -1894,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) { @@ -1914,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) { @@ -1934,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 { @@ -1984,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(), @@ -2048,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) { @@ -2061,44 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2110,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 @@ -2135,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 @@ -2285,7 +1935,6 @@ public boolean getFullyExplored() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2297,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()); } @@ -2317,15 +1967,16 @@ 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; @@ -2335,21 +1986,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.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; } @@ -2370,143 +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 = (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() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2529,9 +2175,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 @@ -2550,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_; @@ -2560,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(); @@ -2578,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; @@ -2618,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()); } @@ -2641,13 +2282,11 @@ 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_); } } } @@ -2680,40 +2319,37 @@ 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) { @@ -2723,64 +2359,45 @@ 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(); @@ -2794,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(); @@ -2816,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; } @@ -2845,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) { @@ -2866,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 { @@ -2970,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) { @@ -2990,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 { @@ -3011,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) { @@ -3038,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()); @@ -3064,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(); @@ -3091,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) { @@ -3118,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()); @@ -3143,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()); @@ -3169,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( @@ -3196,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) { @@ -3219,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) { @@ -3242,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 { @@ -3302,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(), @@ -3381,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 @@ -3402,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); } @@ -3456,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(); } @@ -3470,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -3505,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 72% 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 ea3940ed5c9a..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,43 +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; } - - 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.
@@ -91,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.
@@ -102,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.
@@ -116,8 +90,6 @@ public enum AnalysisView implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The default/unset value.
      * The API will default to the FULL view.
@@ -127,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.
@@ -138,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.
@@ -149,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(
@@ -173,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 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<
+        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() {
       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;
@@ -235,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
@@ -245,7 +212,6 @@ private AnalysisView(int value) {
    * 
* * string resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The resource. */ @java.lang.Override @@ -254,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
@@ -271,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 { @@ -290,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
@@ -301,7 +265,6 @@ public com.google.protobuf.ByteString getResourceBytes() {
    * 
* * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationParent. */ @java.lang.Override @@ -310,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
@@ -328,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 { @@ -347,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; @@ -397,16 +348,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(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); @@ -424,10 +374,9 @@ 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; @@ -437,16 +386,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.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; @@ -470,136 +420,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -613,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 @@ -634,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_; @@ -647,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; @@ -725,31 +667,27 @@ 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) { @@ -762,8 +700,6 @@ 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
@@ -772,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; @@ -787,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
@@ -797,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 { @@ -812,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
@@ -822,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
@@ -846,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
@@ -866,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; @@ -883,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
@@ -894,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; @@ -909,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
@@ -920,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 { @@ -935,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
@@ -946,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
@@ -971,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
@@ -992,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; @@ -1009,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. */ @@ -1081,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); } @@ -1116,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(); } @@ -1130,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1165,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 67% 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 0b3299af13f5..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,80 +1,59 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -84,26 +63,22 @@ 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 {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * 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 {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -113,11 +88,9 @@ public int getMoveAnalysisCount() { return moveAnalysis_.size(); } /** - * - * *
    * The list of analyses returned from performing the intended resource move
-   * analysis. The analysis is grouped by different {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -127,22 +100,20 @@ 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 {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * 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; @@ -154,7 +125,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 < moveAnalysis_.size(); i++) { output.writeMessage(1, moveAnalysis_.get(i)); } @@ -168,7 +140,8 @@ 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; @@ -178,15 +151,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; } @@ -207,136 +180,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +318,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 @@ -372,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)) { @@ -392,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; @@ -451,10 +416,9 @@ 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_); } @@ -486,26 +450,25 @@ 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) { @@ -515,32 +478,24 @@ 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -553,11 +508,9 @@ public java.util.List getMoveAnalysisLis } } /** - * - * *
      * The list of analyses returned from performing the intended resource move
-     * analysis. The analysis is grouped by different {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -570,11 +523,9 @@ public int getMoveAnalysisCount() { } } /** - * - * *
      * The list of analyses returned from performing the intended resource move
-     * analysis. The analysis is grouped by different {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -587,16 +538,15 @@ 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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(); @@ -610,11 +560,9 @@ 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -631,11 +579,9 @@ public Builder setMoveAnalysis( return this; } /** - * - * *
      * The list of analyses returned from performing the intended resource move
-     * analysis. The analysis is grouped by different {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -654,16 +600,15 @@ 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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(); @@ -677,16 +622,15 @@ 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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()); @@ -697,11 +641,9 @@ 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -718,11 +660,9 @@ public Builder addMoveAnalysis( return this; } /** - * - * *
      * The list of analyses returned from performing the intended resource move
-     * analysis. The analysis is grouped by different {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -731,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); @@ -739,11 +680,9 @@ public Builder addAllMoveAnalysis( return this; } /** - * - * *
      * The list of analyses returned from performing the intended resource move
-     * analysis. The analysis is grouped by different {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -759,11 +698,9 @@ public Builder clearMoveAnalysis() { return this; } /** - * - * *
      * The list of analyses returned from performing the intended resource move
-     * analysis. The analysis is grouped by different {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; @@ -779,47 +716,42 @@ 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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 { @@ -827,67 +759,59 @@ 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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 {{gcp_name}} services.
+     * analysis. The analysis is grouped by different Cloud services.
      * 
* * 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); } @@ -897,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(); } @@ -911,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -946,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 56% 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 94a24cd8b8a3..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,82 +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; -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 {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * 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 {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; */ 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 {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * repeated .google.cloud.asset.v1.MoveAnalysis move_analysis = 1; */ int getMoveAnalysisCount(); /** - * - * *
    * The list of analyses returned from performing the intended resource move
-   * analysis. The analysis is grouped by different {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * 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 {{gcp_name}} services.
+   * analysis. The analysis is grouped by different Cloud services.
    * 
* * 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 72% 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 de95b3a0f946..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,50 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 {{gcp_name}}. An asset can be any resource in the {{gcp_name}}
+ * An asset in Google Cloud. An asset can be any resource in the Google Cloud
  * [resource
  * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
- * a resource outside the {{gcp_name}} resource hierarchy (such as
- * {{container_name}} clusters and objects), or a policy (e.g.
- * {{iam_name_short}} policy), or a relationship (e.g. an
- * INSTANCE_TO_INSTANCEGROUP relationship). See [Supported asset
+ * a resource outside the Google Cloud resource hierarchy (such as Google
+ * Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy),
+ * or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship).
+ * See [Supported asset
  * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
  * for more information.
  * 
* * 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,42 +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; } - - 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; } @@ -105,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 @@ -146,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 @@ -162,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.
@@ -179,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`
@@ -190,7 +155,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -199,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`
@@ -217,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 { @@ -236,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
@@ -246,7 +208,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -255,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
@@ -272,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 { @@ -291,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 @@ -306,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 @@ -321,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.
    * 
@@ -337,22 +290,19 @@ 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 {{iam_name_short}} policy set on a {{gcp_name}}
-   * resource. There can be a maximum of one {{iam_name_short}} policy set on
-   * any given resource. In addition, {{iam_name_short}} policies inherit their
-   * granted access scope from any policies set on parent resources in the
-   * resource hierarchy. Therefore, the effectively policy is the union of both
-   * the policy set on this resource and each policy set on all of the
-   * resource's ancestry resource levels in the hierarchy. See [this
-   * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-   * more information.
+   * 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.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+   * for more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ @java.lang.Override @@ -360,22 +310,19 @@ public boolean hasIamPolicy() { return iamPolicy_ != null; } /** - * - * *
-   * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-   * resource. There can be a maximum of one {{iam_name_short}} policy set on
-   * any given resource. In addition, {{iam_name_short}} policies inherit their
-   * granted access scope from any policies set on parent resources in the
-   * resource hierarchy. Therefore, the effectively policy is the union of both
-   * the policy set on this resource and each policy set on all of the
-   * resource's ancestry resource levels in the hierarchy. See [this
-   * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-   * more information.
+   * 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.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+   * for more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ @java.lang.Override @@ -383,18 +330,16 @@ public com.google.iam.v1.Policy getIamPolicy() { return iamPolicy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : iamPolicy_; } /** - * - * *
-   * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-   * resource. There can be a maximum of one {{iam_name_short}} policy set on
-   * any given resource. In addition, {{iam_name_short}} policies inherit their
-   * granted access scope from any policies set on parent resources in the
-   * resource hierarchy. Therefore, the effectively policy is the union of both
-   * the policy set on this resource and each policy set on all of the
-   * resource's ancestry resource levels in the hierarchy. See [this
-   * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-   * more information.
+   * 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.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+   * for more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -407,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).
@@ -423,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).
@@ -435,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).
@@ -456,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).
@@ -472,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).
@@ -484,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 @@ -506,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).
@@ -535,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 @@ -561,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).
@@ -590,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 @@ -616,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).
@@ -645,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();
   }
@@ -656,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)
@@ -665,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 @@ -673,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)
@@ -682,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)
@@ -710,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
@@ -721,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=167 + * @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
@@ -743,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=167 + * @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
@@ -769,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 @@ -792,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.
    * 
@@ -825,10 +701,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 {{gcp_name}} [resource
+   * The ancestry path of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -838,17 +712,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 {{gcp_name}} [resource
+   * The ancestry path of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -858,17 +730,14 @@ 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 {{gcp_name}} [resource
+   * The ancestry path of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -878,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. */ @@ -886,10 +754,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
-   * The ancestry path of an asset in {{gcp_name}} [resource
+   * The ancestry path of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -899,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; @@ -920,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_); } @@ -937,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)); @@ -979,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; @@ -1012,16 +874,20 @@ 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; @@ -1031,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); @@ -1040,42 +906,55 @@ 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: @@ -1148,142 +1027,138 @@ 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 {{gcp_name}}. An asset can be any resource in the {{gcp_name}}
+   * An asset in Google Cloud. An asset can be any resource in the Google Cloud
    * [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
-   * a resource outside the {{gcp_name}} resource hierarchy (such as
-   * {{container_name}} clusters and objects), or a policy (e.g.
-   * {{iam_name_short}} policy), or a relationship (e.g. an
-   * INSTANCE_TO_INSTANCEGROUP relationship). See [Supported asset
+   * a resource outside the Google Cloud resource hierarchy (such as Google
+   * Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy),
+   * or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship).
+   * See [Supported asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
    * for more information.
    * 
* * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1351,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 @@ -1450,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; @@ -1526,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_); } @@ -1555,25 +1428,21 @@ 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(); @@ -1601,100 +1470,104 @@ 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) { @@ -1704,12 +1577,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() { @@ -1723,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.
@@ -1787,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.
@@ -1796,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();
@@ -1807,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.
@@ -1820,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;
         }
@@ -1832,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.
@@ -1853,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.
@@ -1863,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.
@@ -1881,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.
@@ -1897,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_;
@@ -1915,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`
@@ -1926,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; @@ -1941,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`
@@ -1952,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 { @@ -1967,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`
@@ -1978,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`
@@ -2003,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`
@@ -2024,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; @@ -2041,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
@@ -2051,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; @@ -2066,8 +1899,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
      * The type of the asset. Example: `compute.googleapis.com/Disk`
      * See [Supported asset
@@ -2076,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 { @@ -2091,8 +1923,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
      * The type of the asset. Example: `compute.googleapis.com/Disk`
      * See [Supported asset
@@ -2101,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
@@ -2125,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
@@ -2145,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; @@ -2162,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.
      * 
@@ -2223,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(); @@ -2242,8 +2053,6 @@ public Builder setResource(com.google.cloud.asset.v1.Resource.Builder builderFor return this; } /** - * - * *
      * A representation of the resource.
      * 
@@ -2254,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; } @@ -2268,8 +2075,6 @@ public Builder mergeResource(com.google.cloud.asset.v1.Resource value) { return this; } /** - * - * *
      * A representation of the resource.
      * 
@@ -2288,8 +2093,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * A representation of the resource.
      * 
@@ -2297,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.
      * 
@@ -2314,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.
      * 
@@ -2329,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_; @@ -2347,49 +2142,40 @@ 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 {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .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 {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -2400,18 +2186,16 @@ public com.google.iam.v1.Policy getIamPolicy() { } } /** - * - * *
-     * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -2430,23 +2214,22 @@ public Builder setIamPolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
-     * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .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(); @@ -2457,18 +2240,16 @@ public Builder setIamPolicy(com.google.iam.v1.Policy.Builder builderForValue) { return this; } /** - * - * *
-     * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -2477,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; } @@ -2489,18 +2270,16 @@ public Builder mergeIamPolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
-     * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -2517,40 +2296,36 @@ public Builder clearIamPolicy() { return this; } /** - * - * *
-     * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; */ public com.google.iam.v1.Policy.Builder getIamPolicyBuilder() { - + onChanged(); return getIamPolicyFieldBuilder().getBuilder(); } /** - * - * *
-     * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -2559,62 +2334,52 @@ 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 {{iam_name_short}} policy set on a {{gcp_name}}
-     * resource. There can be a maximum of one {{iam_name_short}} policy set on
-     * any given resource. In addition, {{iam_name_short}} policies inherit their
-     * granted access scope from any policies set on parent resources in the
-     * resource hierarchy. Therefore, the effectively policy is the union of both
-     * the policy set on this resource and each policy set on all of the
-     * resource's ancestry resource levels in the hierarchy. See [this
-     * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-     * more information.
+     * 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.
+     * In addition, Cloud IAM policies inherit their granted access scope from any
+     * policies set on parent resources in the resource hierarchy. Therefore, the
+     * effectively policy is the union of both the policy set on this resource
+     * and each policy set on all of the resource's ancestry resource levels in
+     * the hierarchy. See
+     * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+     * for more information.
      * 
* * .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).
@@ -2632,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).
@@ -2651,8 +2414,6 @@ public int getOrgPolicyCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A representation of an [organization
      * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
@@ -2670,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).
@@ -2681,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();
@@ -2695,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).
@@ -2718,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).
@@ -2743,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).
@@ -2754,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();
@@ -2768,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).
@@ -2779,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());
@@ -2790,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).
@@ -2813,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).
@@ -2828,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);
@@ -2836,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).
@@ -2858,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).
@@ -2880,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).
@@ -2891,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).
@@ -2906,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).
@@ -2925,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 {
@@ -2934,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).
@@ -2946,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).
@@ -2961,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).
@@ -2977,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 @@ -3020,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 @@ -3046,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).
@@ -3069,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).
@@ -3090,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).
@@ -3099,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;
         }
@@ -3126,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).
@@ -3152,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).
@@ -3161,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).
@@ -3176,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 {
@@ -3188,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).
@@ -3198,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 @@ -3245,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 @@ -3271,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).
@@ -3294,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).
@@ -3315,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).
@@ -3326,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;
         }
@@ -3350,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).
@@ -3376,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).
@@ -3389,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).
@@ -3399,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 {
@@ -3411,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).
@@ -3421,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 @@ -3468,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 { @@ -3495,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).
@@ -3504,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();
@@ -3519,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).
@@ -3540,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).
@@ -3549,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;
         }
@@ -3577,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).
@@ -3603,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).
@@ -3612,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).
@@ -3627,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).
@@ -3650,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)
@@ -3691,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)
@@ -3707,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)
@@ -3744,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)
@@ -3754,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();
@@ -3765,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)
@@ -3779,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;
         }
@@ -3793,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)
@@ -3815,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)
@@ -3826,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)
@@ -3845,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)
@@ -3862,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_;
@@ -3880,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
@@ -3896,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=167 + * @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
@@ -3917,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=167 + * @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
@@ -3945,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();
@@ -3960,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
@@ -3972,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();
@@ -3985,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
@@ -3997,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;
         }
@@ -4016,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
@@ -4028,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();
@@ -4041,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
@@ -4053,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
@@ -4072,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
@@ -4096,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_;
@@ -4114,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.
      * 
@@ -4175,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(); @@ -4194,8 +3730,6 @@ public Builder setRelatedAsset(com.google.cloud.asset.v1.RelatedAsset.Builder bu return this; } /** - * - * *
      * One related asset of the current asset.
      * 
@@ -4206,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; } @@ -4220,8 +3752,6 @@ public Builder mergeRelatedAsset(com.google.cloud.asset.v1.RelatedAsset value) { return this; } /** - * - * *
      * One related asset of the current asset.
      * 
@@ -4240,8 +3770,6 @@ public Builder clearRelatedAsset() { return this; } /** - * - * *
      * One related asset of the current asset.
      * 
@@ -4249,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.
      * 
@@ -4266,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.
      * 
@@ -4281,36 +3804,29 @@ 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 {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4320,17 +3836,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 {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4340,17 +3854,14 @@ 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 {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4360,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. */ @@ -4368,10 +3878,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
-     * The ancestry path of an asset in {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4381,18 +3889,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 {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4402,25 +3908,23 @@ 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 {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4430,24 +3934,22 @@ 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 {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4457,21 +3959,20 @@ 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 {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4481,7 +3982,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
      * 
* * repeated string ancestors = 10; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -4491,10 +3991,8 @@ public Builder clearAncestors() { return this; } /** - * - * *
-     * The ancestry path of an asset in {{gcp_name}} [resource
+     * The ancestry path of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -4504,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); } @@ -4530,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(); } @@ -4544,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -4579,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 78% 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 3a14abfcbcd2..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,58 +119,50 @@ public interface AssetOrBuilder com.google.cloud.asset.v1.ResourceOrBuilder getResourceOrBuilder(); /** - * - * *
-   * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-   * resource. There can be a maximum of one {{iam_name_short}} policy set on
-   * any given resource. In addition, {{iam_name_short}} policies inherit their
-   * granted access scope from any policies set on parent resources in the
-   * resource hierarchy. Therefore, the effectively policy is the union of both
-   * the policy set on this resource and each policy set on all of the
-   * resource's ancestry resource levels in the hierarchy. See [this
-   * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-   * more information.
+   * 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.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+   * for more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; - * * @return Whether the iamPolicy field is set. */ boolean hasIamPolicy(); /** - * - * *
-   * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-   * resource. There can be a maximum of one {{iam_name_short}} policy set on
-   * any given resource. In addition, {{iam_name_short}} policies inherit their
-   * granted access scope from any policies set on parent resources in the
-   * resource hierarchy. Therefore, the effectively policy is the union of both
-   * the policy set on this resource and each policy set on all of the
-   * resource's ancestry resource levels in the hierarchy. See [this
-   * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-   * more information.
+   * 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.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+   * for more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ com.google.iam.v1.Policy getIamPolicy(); /** - * - * *
-   * A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-   * resource. There can be a maximum of one {{iam_name_short}} policy set on
-   * any given resource. In addition, {{iam_name_short}} policies inherit their
-   * granted access scope from any policies set on parent resources in the
-   * resource hierarchy. Therefore, the effectively policy is the union of both
-   * the policy set on this resource and each policy set on all of the
-   * resource's ancestry resource levels in the hierarchy. See [this
-   * topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-   * more information.
+   * 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.
+   * In addition, Cloud IAM policies inherit their granted access scope from any
+   * policies set on parent resources in the resource hierarchy. Therefore, the
+   * effectively policy is the union of both the policy set on this resource
+   * and each policy set on all of the resource's ancestry resource levels in
+   * the hierarchy. See
+   * [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+   * for more information.
    * 
* * .google.iam.v1.Policy iam_policy = 4; @@ -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=167 + * @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=167 + * @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,10 +422,8 @@ public interface AssetOrBuilder com.google.cloud.asset.v1.RelatedAssetOrBuilder getRelatedAssetOrBuilder(); /** - * - * *
-   * The ancestry path of an asset in {{gcp_name}} [resource
+   * The ancestry path of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -545,15 +433,13 @@ 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 {{gcp_name}} [resource
+   * The ancestry path of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -563,15 +449,12 @@ public interface AssetOrBuilder
    * 
* * repeated string ancestors = 10; - * * @return The count of ancestors. */ int getAncestorsCount(); /** - * - * *
-   * The ancestry path of an asset in {{gcp_name}} [resource
+   * The ancestry path of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -581,16 +464,13 @@ 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 {{gcp_name}} [resource
+   * The ancestry path of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -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 76% 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 59d205474785..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,35 +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;
   }
-
-  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`
@@ -83,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string asset_type = 1; - * * @return The assetType. */ @java.lang.Override @@ -92,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`
@@ -110,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 { @@ -129,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
@@ -144,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
@@ -155,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
@@ -175,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
@@ -190,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
@@ -207,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;
@@ -219,7 +186,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(assetType_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetType_);
     }
@@ -239,8 +207,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;
@@ -250,16 +218,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.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;
   }
@@ -282,104 +251,97 @@ 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.
@@ -387,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -429,9 +392,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
@@ -450,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) {
@@ -471,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;
@@ -534,10 +495,9 @@ 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_);
           }
@@ -569,32 +529,30 @@ 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) {
@@ -604,13 +562,10 @@ 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`
@@ -620,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; @@ -635,8 +590,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
      * The type of this attached resource.
      * Example: `osconfig.googleapis.com/Inventory`
@@ -646,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 { @@ -661,8 +615,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
      * The type of this attached resource.
      * Example: `osconfig.googleapis.com/Inventory`
@@ -672,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`
@@ -697,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`
@@ -718,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
@@ -770,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
@@ -788,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
@@ -806,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
@@ -831,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
@@ -853,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
@@ -877,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
@@ -902,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
@@ -924,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
@@ -946,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
@@ -960,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);
@@ -968,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
@@ -989,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
@@ -1010,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
@@ -1025,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
@@ -1038,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
@@ -1054,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 {
@@ -1063,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
@@ -1074,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
@@ -1090,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
@@ -1104,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(),
@@ -1128,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);
     }
 
@@ -1140,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();
   }
@@ -1154,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1189,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 72%
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 91a3025cb533..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,45 +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; } - - 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 @@ -93,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 { @@ -130,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
@@ -142,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
@@ -161,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
@@ -180,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. */ @@ -188,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
@@ -200,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
@@ -262,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 @@ -273,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
@@ -284,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
@@ -308,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() { @@ -320,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
@@ -336,21 +269,19 @@ public com.google.cloud.asset.v1.TimeWindowOrBuilder getReadTimeWindowOrBuilder(
    * it outputs the supported relationships' history on the [asset_names] or
    * returns an error if any of the [asset_names]'s types has no relationship
    * support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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]; - * * @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
@@ -365,21 +296,18 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
    * it outputs the supported relationships' history on the [asset_names] or
    * returns an error if any of the [asset_names]'s types has no relationship
    * support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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]; - * * @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
@@ -394,13 +322,12 @@ public int getRelationshipTypesCount() {
    * it outputs the supported relationships' history on the [asset_names] or
    * returns an error if any of the [asset_names]'s types has no relationship
    * support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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]; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -408,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
@@ -424,22 +349,21 @@ public java.lang.String getRelationshipTypes(int index) {
    * it outputs the supported relationships' history on the [asset_names] or
    * returns an error if any of the [asset_names]'s types has no relationship
    * support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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]; - * * @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; @@ -451,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) { @@ -488,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; @@ -511,22 +436,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.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; } @@ -560,136 +488,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -711,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 @@ -732,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)) { @@ -760,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; @@ -800,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(); @@ -858,45 +776,41 @@ 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) { @@ -906,29 +820,24 @@ 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; @@ -937,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 { @@ -963,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
@@ -1057,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
@@ -1076,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
@@ -1095,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. */ @@ -1103,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
@@ -1115,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
@@ -1135,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
@@ -1162,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
@@ -1188,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
@@ -1211,7 +1085,6 @@ public Builder addAllAssetNames(java.lang.Iterable values) {
      * 
* * repeated string asset_names = 2; - * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1221,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
@@ -1233,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(); @@ -1250,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. */ @@ -1324,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; @@ -1351,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
@@ -1367,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
@@ -1388,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
@@ -1415,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) { @@ -1433,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
@@ -1444,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(); @@ -1459,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
@@ -1470,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; } @@ -1492,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
@@ -1503,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) { @@ -1519,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
@@ -1530,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
@@ -1551,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
@@ -1576,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
@@ -1623,22 +1415,19 @@ private void ensureRelationshipTypesIsMutable() {
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @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
@@ -1653,22 +1442,18 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @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
@@ -1683,14 +1468,12 @@ public int getRelationshipTypesCount() {
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -1698,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
@@ -1714,23 +1495,20 @@ public java.lang.String getRelationshipTypes(int index) {
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @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
@@ -1745,30 +1523,27 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @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
@@ -1783,29 +1558,26 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @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
@@ -1820,26 +1592,24 @@ public Builder addRelationshipTypes(java.lang.String value) {
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @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
@@ -1854,14 +1624,12 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -1871,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
@@ -1887,30 +1653,29 @@ public Builder clearRelationshipTypes() {
      * it outputs the supported relationships' history on the [asset_names] or
      * returns an error if any of the [asset_names]'s types has no relationship
      * support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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]; * @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); } @@ -1920,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(); } @@ -1934,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1969,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 76% 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 3cc38bb063fb..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
@@ -229,19 +168,17 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
    * it outputs the supported relationships' history on the [asset_names] or
    * returns an error if any of the [asset_names]'s types has no relationship
    * support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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]; - * * @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
@@ -256,19 +193,16 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
    * it outputs the supported relationships' history on the [asset_names] or
    * returns an error if any of the [asset_names]'s types has no relationship
    * support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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]; - * * @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
@@ -283,20 +217,17 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
    * it outputs the supported relationships' history on the [asset_names] or
    * returns an error if any of the [asset_names]'s types has no relationship
    * support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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]; - * * @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
@@ -311,15 +242,15 @@ public interface BatchGetAssetsHistoryRequestOrBuilder
    * it outputs the supported relationships' history on the [asset_names] or
    * returns an error if any of the [asset_names]'s types has no relationship
    * support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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]; - * * @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 70% 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 3b12b5200907..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,77 +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; } - - 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.
    * 
@@ -83,8 +62,6 @@ public java.util.List getAssetsList() { return assets_; } /** - * - * *
    * A list of assets with valid time windows.
    * 
@@ -92,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.
    * 
@@ -110,8 +85,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
    * A list of assets with valid time windows.
    * 
@@ -123,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.
    * 
@@ -132,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; @@ -149,7 +120,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 < assets_.size(); i++) { output.writeMessage(1, assets_.get(i)); } @@ -163,7 +135,8 @@ 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; @@ -173,15 +146,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; } @@ -203,136 +176,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -347,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_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 @@ -368,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)) { @@ -388,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; @@ -428,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()) { @@ -448,10 +411,9 @@ 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_); } @@ -483,26 +445,25 @@ 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) { @@ -512,28 +473,21 @@ 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.
      * 
@@ -548,8 +502,6 @@ public java.util.List getAssetsList() { } } /** - * - * *
      * A list of assets with valid time windows.
      * 
@@ -564,8 +516,6 @@ public int getAssetsCount() { } } /** - * - * *
      * A list of assets with valid time windows.
      * 
@@ -580,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(); @@ -602,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.
      * 
@@ -622,8 +569,6 @@ public Builder setAssets( return this; } /** - * - * *
      * A list of assets with valid time windows.
      * 
@@ -644,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(); @@ -666,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()); @@ -685,8 +628,6 @@ public Builder addAssets(com.google.cloud.asset.v1.TemporalAsset.Builder builder return this; } /** - * - * *
      * A list of assets with valid time windows.
      * 
@@ -705,8 +646,6 @@ public Builder addAssets( return this; } /** - * - * *
      * A list of assets with valid time windows.
      * 
@@ -717,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); @@ -725,8 +665,6 @@ public Builder addAllAssets( return this; } /** - * - * *
      * A list of assets with valid time windows.
      * 
@@ -744,8 +682,6 @@ public Builder clearAssets() { return this; } /** - * - * *
      * A list of assets with valid time windows.
      * 
@@ -763,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 { @@ -808,8 +739,6 @@ public com.google.cloud.asset.v1.TemporalAssetOrBuilder getAssetsOrBuilder(int i } } /** - * - * *
      * A list of assets with valid time windows.
      * 
@@ -817,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); } @@ -874,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(); } @@ -888,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -923,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 66% 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 f76dbd69fa6d..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,38 +26,34 @@ 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_name_short}} policies on or below the scope will be
-   * returned.
+   * Required. Only IAM policies on or below the scope will be returned.
    * 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").
@@ -88,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 @@ -100,18 +72,16 @@ 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_name_short}} policies on or below the scope will be
-   * returned.
+   * Required. Only IAM policies on or below the scope will be returned.
    * 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").
@@ -121,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 { @@ -143,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)
@@ -153,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)
@@ -173,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)
@@ -193,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. */ @@ -204,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)
@@ -214,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; @@ -238,7 +188,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_); } @@ -273,16 +224,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.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; } @@ -306,137 +258,129 @@ 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].
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -448,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(); } @@ -470,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)) { @@ -487,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; @@ -527,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(); @@ -570,26 +509,23 @@ 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) { @@ -599,16 +535,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object scope_ = ""; /** - * - * *
-     * Required. Only {{iam_name_short}} policies on or below the scope will be
-     * returned.
+     * Required. Only IAM policies on or below the scope will be returned.
      * 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").
@@ -618,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; @@ -636,11 +566,8 @@ public java.lang.String getScope() { } } /** - * - * *
-     * Required. Only {{iam_name_short}} policies on or below the scope will be
-     * returned.
+     * Required. Only IAM policies on or below the scope will be returned.
      * 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").
@@ -650,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 { @@ -668,11 +594,8 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
-     * Required. Only {{iam_name_short}} policies on or below the scope will be
-     * returned.
+     * Required. Only IAM policies on or below the scope will be returned.
      * 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").
@@ -682,28 +605,23 @@ 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_name_short}} policies on or below the scope will be
-     * returned.
+     * Required. Only IAM policies on or below the scope will be returned.
      * 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").
@@ -713,24 +631,18 @@ 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_name_short}} policies on or below the scope will be
-     * returned.
+     * Required. Only IAM policies on or below the scope will be returned.
      * 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").
@@ -740,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)
@@ -778,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)
@@ -798,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)
@@ -818,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. */ @@ -829,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)
@@ -839,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)
@@ -860,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)
@@ -888,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)
@@ -915,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)
@@ -939,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() { @@ -952,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)
@@ -962,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); } @@ -991,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(); } @@ -1006,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1041,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 64% 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 7b7dec8ffe07..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,34 +1,15 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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_name_short}} policies on or below the scope will be
-   * returned.
+   * Required. Only IAM policies on or below the scope will be returned.
    * 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").
@@ -38,19 +19,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 scope. */ java.lang.String getScope(); /** - * - * *
-   * Required. Only {{iam_name_short}} policies on or below the scope will be
-   * returned.
+   * Required. Only IAM policies on or below the scope will be returned.
    * 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").
@@ -60,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)
@@ -79,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)
@@ -97,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)
@@ -115,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)
@@ -134,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 78% 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 334ead3c8cac..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_name}} destination for exporting assets to.
+ * 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,48 +26,44 @@ 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_name}} dataset in format
+   * Required. The BigQuery dataset in format
    * "projects/projectId/datasets/datasetId", to which the snapshot result
    * should be exported. If this dataset does not exist, the export call returns
    * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
    * determines the
    * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-   * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-   * `TRUE` also influences the schema.
+   * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+   * influences the schema.
    * 
* * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ @java.lang.Override @@ -94,36 +72,36 @@ 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_name}} dataset in format
+   * Required. The BigQuery dataset in format
    * "projects/projectId/datasets/datasetId", to which the snapshot result
    * should be exported. If this dataset does not exist, the export call returns
    * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
    * determines the
    * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-   * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-   * `TRUE` also influences the schema.
+   * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+   * influences the schema.
    * 
* * 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 { @@ -134,16 +112,13 @@ public com.google.protobuf.ByteString getDatasetBytes() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** - * - * *
-   * Required. The {{bigquery_name}} table to which the snapshot result should
-   * be written. If this table does not exist, a new table with the given name
+   * 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
    * will be created.
    * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ @java.lang.Override @@ -152,31 +127,31 @@ 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_name}} table to which the snapshot result should
-   * be written. If this table does not exist, a new table with the given name
+   * 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
    * 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 { @@ -187,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
@@ -197,7 +170,6 @@ public com.google.protobuf.ByteString getTableBytes() {
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -208,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.
@@ -229,7 +199,6 @@ public boolean getForce() {
    * 
* * .google.cloud.asset.v1.PartitionSpec partition_spec = 4; - * * @return Whether the partitionSpec field is set. */ @java.lang.Override @@ -237,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.
@@ -258,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.
@@ -298,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
@@ -316,7 +276,7 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
    * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of
    * each table will include RECORD-type columns mapped to the nested fields in
    * the Asset.resource.data field of that asset type (up to the 15 nested level
-   * {{bigquery_name}} supports
+   * BigQuery supports
    * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The
    * fields in >15 nested levels will be stored in JSON format string as a child
    * column of its parent RECORD column.
@@ -328,7 +288,6 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
    * 
* * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -337,7 +296,6 @@ public boolean getSeparateTablesPerAssetType() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,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_); } @@ -381,13 +340,16 @@ 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; @@ -397,22 +359,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.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; } @@ -429,148 +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 = (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_name}} destination for exporting assets to.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -592,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 @@ -613,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_; @@ -632,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; @@ -716,43 +676,39 @@ 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) { @@ -765,27 +721,25 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** - * - * *
-     * Required. The {{bigquery_name}} dataset in format
+     * Required. The BigQuery dataset in format
      * "projects/projectId/datasets/datasetId", to which the snapshot result
      * should be exported. If this dataset does not exist, the export call returns
      * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
      * determines the
      * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-     * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-     * `TRUE` also influences the schema.
+     * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+     * influences the schema.
      * 
* * 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; @@ -794,28 +748,27 @@ public java.lang.String getDataset() { } } /** - * - * *
-     * Required. The {{bigquery_name}} dataset in format
+     * Required. The BigQuery dataset in format
      * "projects/projectId/datasets/datasetId", to which the snapshot result
      * should be exported. If this dataset does not exist, the export call returns
      * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
      * determines the
      * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-     * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-     * `TRUE` also influences the schema.
+     * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+     * influences the schema.
      * 
* * 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 { @@ -823,82 +776,75 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
-     * Required. The {{bigquery_name}} dataset in format
+     * Required. The BigQuery dataset in format
      * "projects/projectId/datasets/datasetId", to which the snapshot result
      * should be exported. If this dataset does not exist, the export call returns
      * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
      * determines the
      * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-     * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-     * `TRUE` also influences the schema.
+     * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+     * influences the schema.
      * 
* * 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_name}} dataset in format
+     * Required. The BigQuery dataset in format
      * "projects/projectId/datasets/datasetId", to which the snapshot result
      * should be exported. If this dataset does not exist, the export call returns
      * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
      * determines the
      * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-     * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-     * `TRUE` also influences the schema.
+     * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+     * influences the schema.
      * 
* * 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_name}} dataset in format
+     * Required. The BigQuery dataset in format
      * "projects/projectId/datasets/datasetId", to which the snapshot result
      * should be exported. If this dataset does not exist, the export call returns
      * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
      * determines the
      * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-     * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-     * `TRUE` also influences the schema.
+     * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+     * influences the schema.
      * 
* * 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; @@ -906,22 +852,20 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object table_ = ""; /** - * - * *
-     * Required. The {{bigquery_name}} table to which the snapshot result should
-     * be written. If this table does not exist, a new table with the given name
+     * 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
      * 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; @@ -930,23 +874,22 @@ public java.lang.String getTable() { } } /** - * - * *
-     * Required. The {{bigquery_name}} table to which the snapshot result should
-     * be written. If this table does not exist, a new table with the given name
+     * 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
      * 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 { @@ -954,76 +897,67 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
-     * Required. The {{bigquery_name}} table to which the snapshot result should
-     * be written. If this table does not exist, a new table with the given name
+     * 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
      * 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_name}} table to which the snapshot result should
-     * be written. If this table does not exist, a new table with the given name
+     * 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
      * 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_name}} table to which the snapshot result should
-     * be written. If this table does not exist, a new table with the given name
+     * 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
      * 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; } - 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
@@ -1032,7 +966,6 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -1040,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
@@ -1050,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
@@ -1071,11 +999,10 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -1083,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.
@@ -1109,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.
@@ -1137,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.
@@ -1186,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.
@@ -1220,8 +1132,6 @@ public Builder setPartitionSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * [partition_spec] determines whether to export to partitioned table(s) and
      * how to partition the data.
@@ -1246,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;
         }
@@ -1260,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.
@@ -1294,8 +1200,6 @@ public Builder clearPartitionSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [partition_spec] determines whether to export to partitioned table(s) and
      * how to partition the data.
@@ -1317,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.
@@ -1348,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.
@@ -1377,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
@@ -1413,7 +1307,7 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
      * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of
      * each table will include RECORD-type columns mapped to the nested fields in
      * the Asset.resource.data field of that asset type (up to the 15 nested level
-     * {{bigquery_name}} supports
+     * BigQuery supports
      * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The
      * fields in >15 nested levels will be stored in JSON format string as a child
      * column of its parent RECORD column.
@@ -1425,7 +1319,6 @@ public com.google.cloud.asset.v1.PartitionSpecOrBuilder getPartitionSpecOrBuilde
      * 
* * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -1433,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
@@ -1451,7 +1342,7 @@ public boolean getSeparateTablesPerAssetType() {
      * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of
      * each table will include RECORD-type columns mapped to the nested fields in
      * the Asset.resource.data field of that asset type (up to the 15 nested level
-     * {{bigquery_name}} supports
+     * BigQuery supports
      * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The
      * fields in >15 nested levels will be stored in JSON format string as a child
      * column of its parent RECORD column.
@@ -1463,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
@@ -1492,7 +1380,7 @@ public Builder setSeparateTablesPerAssetType(boolean value) {
      * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of
      * each table will include RECORD-type columns mapped to the nested fields in
      * the Asset.resource.data field of that asset type (up to the 15 nested level
-     * {{bigquery_name}} supports
+     * BigQuery supports
      * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The
      * fields in >15 nested levels will be stored in JSON format string as a child
      * column of its parent RECORD column.
@@ -1504,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); } @@ -1525,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(); } @@ -1539,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1574,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 82% 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 7de7b27d4108..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,99 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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_name}} dataset in format
+   * Required. The BigQuery dataset in format
    * "projects/projectId/datasets/datasetId", to which the snapshot result
    * should be exported. If this dataset does not exist, the export call returns
    * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
    * determines the
    * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-   * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-   * `TRUE` also influences the schema.
+   * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+   * influences the schema.
    * 
* * string dataset = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
-   * Required. The {{bigquery_name}} dataset in format
+   * Required. The BigQuery dataset in format
    * "projects/projectId/datasets/datasetId", to which the snapshot result
    * should be exported. If this dataset does not exist, the export call returns
    * an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
    * determines the
    * [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-   * of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-   * `TRUE` also influences the schema.
+   * of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+   * influences the schema.
    * 
* * 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_name}} table to which the snapshot result should
-   * be written. If this table does not exist, a new table with the given name
+   * 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
    * will be created.
    * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
-   * Required. The {{bigquery_name}} table to which the snapshot result should
-   * be written. If this table does not exist, a new table with the given name
+   * 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
    * 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(); /** - * - * *
    * 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
@@ -203,7 +164,7 @@ public interface BigQueryDestinationOrBuilder
    * When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of
    * each table will include RECORD-type columns mapped to the nested fields in
    * the Asset.resource.data field of that asset type (up to the 15 nested level
-   * {{bigquery_name}} supports
+   * BigQuery supports
    * (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The
    * fields in >15 nested levels will be stored in JSON format string as a child
    * column of its parent RECORD column.
@@ -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 67% 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 efe98417713b..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,85 +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; } - - 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.
      * 
@@ -88,8 +66,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ EVALUATION_VALUE_UNSPECIFIED(0), /** - * - * *
      * The evaluation result is `true`.
      * 
@@ -98,8 +74,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ TRUE(1), /** - * - * *
      * The evaluation result is `false`.
      * 
@@ -108,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
@@ -123,8 +95,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Reserved for future use.
      * 
@@ -133,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`.
      * 
@@ -143,8 +111,6 @@ public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRUE_VALUE = 1; /** - * - * *
      * The evaluation result is `false`.
      * 
@@ -153,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
@@ -165,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(
@@ -189,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);
     }
 
@@ -235,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;
@@ -255,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; @@ -303,11 +253,9 @@ 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); @@ -319,11 +267,9 @@ 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; @@ -333,13 +279,12 @@ 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; @@ -360,136 +305,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -499,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 @@ -520,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; @@ -531,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; @@ -601,19 +538,17 @@ 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) { @@ -626,100 +561,80 @@ 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); } @@ -729,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(); } @@ -743,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -778,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 65% 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 a976a147171e..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,38 +29,30 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ RESOURCE(1), /** - * - * *
-   * The actual {{iam_name_short}} policy set on a resource.
+   * The actual IAM policy set on a resource.
    * 
* * IAM_POLICY = 2; */ IAM_POLICY(2), /** - * - * *
-   * The organization policy set on an asset.
+   * The Cloud Organization Policy set on an asset.
    * 
* * ORG_POLICY = 4; */ ORG_POLICY(4), /** - * - * *
-   * The {{acm_name}} policy set on an asset.
+   * The Cloud Access context manager Policy set on an asset.
    * 
* * ACCESS_POLICY = 5; */ 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,38 +88,30 @@ public enum ContentType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RESOURCE_VALUE = 1; /** - * - * *
-   * The actual {{iam_name_short}} policy set on a resource.
+   * The actual IAM policy set on a resource.
    * 
* * IAM_POLICY = 2; */ public static final int IAM_POLICY_VALUE = 2; /** - * - * *
-   * The organization policy set on an asset.
+   * The Cloud Organization Policy set on an asset.
    * 
* * ORG_POLICY = 4; */ public static final int ORG_POLICY_VALUE = 4; /** - * - * *
-   * The {{acm_name}} policy set on an asset.
+   * The Cloud Access context manager Policy set on an asset.
    * 
* * ACCESS_POLICY = 5; */ 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 71% 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 60b1d7f9cc3f..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,35 +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; } - - 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
@@ -82,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 @@ -91,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
@@ -109,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 { @@ -128,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 @@ -145,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 { @@ -179,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 @@ -197,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 @@ -215,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
    * 
@@ -232,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; @@ -244,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_); } @@ -270,7 +240,8 @@ 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; @@ -280,19 +251,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.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; @@ -318,136 +291,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -465,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 @@ -486,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) { @@ -503,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; @@ -581,31 +546,29 @@ 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) { @@ -618,8 +581,6 @@ 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
@@ -629,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; @@ -644,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
@@ -655,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 { @@ -670,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
@@ -681,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
@@ -706,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
@@ -727,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; @@ -744,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; @@ -767,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 { @@ -790,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; @@ -855,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() { @@ -898,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
      * 
@@ -923,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(); @@ -945,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
      * 
@@ -959,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; } @@ -971,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
      * 
@@ -994,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
      * 
@@ -1006,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
      * 
@@ -1026,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
      * 
@@ -1042,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); } @@ -1069,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(); } @@ -1083,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1118,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 58% 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 fdf201d6311b..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,47 +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; } - - 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 @@ -93,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 { @@ -132,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 @@ -150,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() { @@ -189,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
@@ -202,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 @@ -211,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
@@ -231,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 { @@ -248,7 +203,6 @@ public com.google.protobuf.ByteString getSavedQueryIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,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_); } @@ -283,7 +238,8 @@ 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_); @@ -296,20 +252,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.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; } @@ -335,135 +293,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -481,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 @@ -502,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_; @@ -519,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; @@ -559,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(); @@ -598,31 +547,29 @@ 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) { @@ -635,26 +582,22 @@ 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 "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; @@ -663,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 { @@ -691,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; @@ -771,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) { @@ -841,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(); @@ -863,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; } @@ -892,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) { @@ -915,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_; @@ -983,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
@@ -996,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; @@ -1011,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
@@ -1024,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 { @@ -1039,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
@@ -1052,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
@@ -1079,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
@@ -1102,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); } @@ -1128,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(); } @@ -1142,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1177,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 62% 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 8383be811420..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,69 +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; } - - 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
@@ -71,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 @@ -83,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
@@ -99,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 { @@ -119,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +108,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_); } @@ -155,15 +133,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; } @@ -182,128 +160,126 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -313,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 @@ -334,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; @@ -345,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; @@ -416,19 +390,17 @@ 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) { @@ -441,8 +413,6 @@ 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
@@ -450,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; @@ -468,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
@@ -477,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 { @@ -495,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
@@ -504,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
@@ -530,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
@@ -552,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); } @@ -581,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(); } @@ -595,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -630,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 63% 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 d67729d6fabd..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,89 +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; } - - 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 @@ -92,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 { @@ -129,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,7 +112,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_); } @@ -165,15 +137,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; } @@ -193,135 +165,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -331,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 @@ -352,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; @@ -363,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; @@ -403,8 +367,7 @@ 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(); @@ -435,19 +398,17 @@ 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) { @@ -460,26 +421,21 @@ public Builder mergeFrom( 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; @@ -488,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 { @@ -516,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); } @@ -605,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(); } @@ -619,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -654,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 74% 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 c212d4a3ca91..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,35 +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; } - - 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
@@ -82,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 @@ -94,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
@@ -110,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 { @@ -132,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).
@@ -143,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 @@ -151,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).
@@ -162,7 +131,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -170,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).
@@ -190,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".
@@ -204,21 +168,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -231,21 +193,18 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -258,13 +217,12 @@ public int getAssetTypesCount() {
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -272,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".
@@ -286,72 +242,57 @@ public java.lang.String getAssetTypes(int index) {
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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 @@ -359,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() { @@ -398,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
@@ -413,21 +339,19 @@ public com.google.cloud.asset.v1.OutputConfigOrBuilder getOutputConfigOrBuilder(
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -441,21 +365,18 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -469,13 +390,12 @@ public int getRelationshipTypesCount() {
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 6; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -483,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
@@ -498,22 +416,21 @@ public java.lang.String getRelationshipTypes(int index) {
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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; @@ -525,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_); } @@ -535,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) { @@ -558,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; @@ -568,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; @@ -591,26 +510,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.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; } @@ -647,136 +570,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -804,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 @@ -825,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) { @@ -858,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; @@ -958,51 +873,48 @@ 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) { @@ -1012,13 +924,10 @@ 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
@@ -1026,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; @@ -1044,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
@@ -1053,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 { @@ -1071,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
@@ -1080,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
@@ -1106,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
@@ -1128,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; @@ -1148,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).
@@ -1164,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).
@@ -1182,7 +1065,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1193,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).
@@ -1219,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).
@@ -1231,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();
@@ -1242,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).
@@ -1258,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;
         }
@@ -1270,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).
@@ -1294,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).
@@ -1307,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).
@@ -1328,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).
@@ -1345,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".
@@ -1385,21 +1248,19 @@ private void ensureAssetTypesIsMutable() {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1412,21 +1273,18 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1439,13 +1297,12 @@ public int getAssetTypesCount() {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1453,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".
@@ -1467,22 +1322,20 @@ public java.lang.String getAssetTypes(int index) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1495,29 +1348,27 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1530,28 +1381,26 @@ public Builder setAssetTypes(int index, java.lang.String value) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1564,25 +1413,24 @@ public Builder addAssetTypes(java.lang.String value) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1595,13 +1443,12 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1611,8 +1458,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
      * A list of asset types to take a snapshot for. For example:
      * "compute.googleapis.com/Disk".
@@ -1625,21 +1470,21 @@ public Builder clearAssetTypes() {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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(); @@ -1648,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. */ @@ -1718,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; @@ -1744,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) { @@ -1814,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(); @@ -1836,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; } @@ -1865,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) { @@ -1888,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
@@ -1979,21 +1746,19 @@ private void ensureRelationshipTypesIsMutable() {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2007,21 +1772,18 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2035,13 +1797,12 @@ public int getRelationshipTypesCount() {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 6; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -2049,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
@@ -2064,22 +1823,20 @@ public java.lang.String getRelationshipTypes(int index) {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2093,29 +1850,27 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2129,28 +1884,26 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2164,25 +1917,24 @@ public Builder addRelationshipTypes(java.lang.String value) {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2196,13 +1948,12 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 6; - * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2212,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
@@ -2227,29 +1976,29 @@ public Builder clearRelationshipTypes() {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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); } @@ -2259,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(); } @@ -2273,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2308,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 77% 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 409a287758da..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".
@@ -120,19 +85,17 @@ public interface ExportAssetsRequestOrBuilder
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -145,19 +108,16 @@ public interface ExportAssetsRequestOrBuilder
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -170,20 +130,17 @@ public interface ExportAssetsRequestOrBuilder
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -196,92 +153,67 @@ public interface ExportAssetsRequestOrBuilder
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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
@@ -295,19 +227,17 @@ public interface ExportAssetsRequestOrBuilder
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -321,19 +251,16 @@ public interface ExportAssetsRequestOrBuilder
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -347,20 +274,17 @@ public interface ExportAssetsRequestOrBuilder
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -374,15 +298,15 @@ public interface ExportAssetsRequestOrBuilder
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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 15cc65b41ce9..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,85 +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; } - - 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 @@ -87,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 @@ -102,8 +76,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time the snapshot was taken.
    * 
@@ -118,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 @@ -133,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.
    * 
@@ -166,18 +128,15 @@ 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 {{storage_name}} object uris where the assets are
+   * set of actual Google Cloud Storage object uris where the assets are
    * exported to. The uris can be different from what [output_config] has
    * specified, as the service will split the output object into multiple ones
-   * once it exceeds a single {{storage_name}} object limit.
+   * once it exceeds a single Google Cloud Storage object limit.
    * 
* * .google.cloud.asset.v1.OutputResult output_result = 3; - * * @return Whether the outputResult field is set. */ @java.lang.Override @@ -185,35 +144,28 @@ public boolean hasOutputResult() { return outputResult_ != null; } /** - * - * *
    * Output result indicating where the assets were exported to. For example, a
-   * set of actual {{storage_name}} object uris where the assets are
+   * set of actual Google Cloud Storage object uris where the assets are
    * exported to. The uris can be different from what [output_config] has
    * specified, as the service will split the output object into multiple ones
-   * once it exceeds a single {{storage_name}} object limit.
+   * once it exceeds a single Google Cloud Storage object limit.
    * 
* * .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 {{storage_name}} object uris where the assets are
+   * set of actual Google Cloud Storage object uris where the assets are
    * exported to. The uris can be different from what [output_config] has
    * specified, as the service will split the output object into multiple ones
-   * once it exceeds a single {{storage_name}} object limit.
+   * once it exceeds a single Google Cloud Storage object limit.
    * 
* * .google.cloud.asset.v1.OutputResult output_result = 3; @@ -224,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; @@ -236,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()); } @@ -256,13 +208,16 @@ 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; @@ -272,25 +227,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.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; @@ -320,140 +277,132 @@ 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
-   * [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() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -479,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 @@ -500,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 { @@ -525,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; @@ -601,31 +548,33 @@ 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) { @@ -638,33 +587,24 @@ 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() { @@ -675,8 +615,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -697,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(); @@ -716,8 +653,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -728,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; } @@ -740,8 +675,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -760,8 +693,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -769,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.
      * 
@@ -786,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.
      * 
@@ -799,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_; @@ -817,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.
      * 
@@ -878,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(); @@ -897,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.
      * 
@@ -909,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; } @@ -923,8 +830,6 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1.OutputConfig value) { return this; } /** - * - * *
      * Output configuration indicating where the results were output to.
      * 
@@ -943,8 +848,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Output configuration indicating where the results were output to.
      * 
@@ -952,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.
      * 
@@ -969,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.
      * 
@@ -984,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_; @@ -1002,61 +897,48 @@ 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 {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .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 {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .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 {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .google.cloud.asset.v1.OutputResult output_result = 3; @@ -1075,19 +957,18 @@ 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 {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .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(); @@ -1098,14 +979,12 @@ 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 {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .google.cloud.asset.v1.OutputResult output_result = 3; @@ -1114,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; } @@ -1128,14 +1005,12 @@ 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 {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .google.cloud.asset.v1.OutputResult output_result = 3; @@ -1152,32 +1027,28 @@ public Builder clearOutputResult() { return this; } /** - * - * *
      * Output result indicating where the assets were exported to. For example, a
-     * set of actual {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .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 {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .google.cloud.asset.v1.OutputResult output_result = 3; @@ -1186,43 +1057,37 @@ 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 {{storage_name}} object uris where the assets are
+     * set of actual Google Cloud Storage object uris where the assets are
      * exported to. The uris can be different from what [output_config] has
      * specified, as the service will split the output object into multiple ones
-     * once it exceeds a single {{storage_name}} object limit.
+     * once it exceeds a single Google Cloud Storage object limit.
      * 
* * .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); } @@ -1232,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(); } @@ -1246,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1281,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 72% 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 003f8515f21a..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,46 +62,38 @@ 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 {{storage_name}} object uris where the assets are
+   * set of actual Google Cloud Storage object uris where the assets are
    * exported to. The uris can be different from what [output_config] has
    * specified, as the service will split the output object into multiple ones
-   * once it exceeds a single {{storage_name}} object limit.
+   * once it exceeds a single Google Cloud Storage object limit.
    * 
* * .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 {{storage_name}} object uris where the assets are
+   * set of actual Google Cloud Storage object uris where the assets are
    * exported to. The uris can be different from what [output_config] has
    * specified, as the service will split the output object into multiple ones
-   * once it exceeds a single {{storage_name}} object limit.
+   * once it exceeds a single Google Cloud Storage object limit.
    * 
* * .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 {{storage_name}} object uris where the assets are
+   * set of actual Google Cloud Storage object uris where the assets are
    * exported to. The uris can be different from what [output_config] has
    * specified, as the service will split the output object into multiple ones
-   * once it exceeds a single {{storage_name}} object limit.
+   * once it exceeds a single Google Cloud Storage object limit.
    * 
* * .google.cloud.asset.v1.OutputResult output_result = 3; 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 d7a9633aee58..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,25 +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;
   }
-
-  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);
   }
@@ -77,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
@@ -89,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 @@ -98,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
@@ -117,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 { @@ -136,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
@@ -149,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
@@ -169,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
@@ -189,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. */ @@ -197,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
@@ -210,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
@@ -233,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
@@ -252,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
@@ -271,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. */ @@ -279,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
@@ -291,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 @@ -358,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() { @@ -397,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
@@ -414,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 @@ -422,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
@@ -439,7 +368,6 @@ public boolean hasCondition() {
    * 
* * .google.type.Expr condition = 6; - * * @return The condition. */ @java.lang.Override @@ -447,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
@@ -473,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
@@ -489,21 +413,19 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() {
    * it outputs the supported relationships of the types of [asset_names] and
    * [asset_types] or returns an error if any of the [asset_names] or the
    * [asset_types] has no replationship support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -518,21 +440,18 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
    * it outputs the supported relationships of the types of [asset_names] and
    * [asset_types] or returns an error if any of the [asset_names] or the
    * [asset_types] has no replationship support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -547,13 +466,12 @@ public int getRelationshipTypesCount() {
    * it outputs the supported relationships of the types of [asset_names] and
    * [asset_types] or returns an error if any of the [asset_names] or the
    * [asset_types] has no replationship support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -561,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
@@ -577,22 +493,21 @@ public java.lang.String getRelationshipTypes(int index) {
    * it outputs the supported relationships of the types of [asset_names] and
    * [asset_types] or returns an error if any of the [asset_names] or the
    * [asset_types] has no replationship support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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; @@ -604,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_); } @@ -614,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) { @@ -655,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; @@ -681,26 +598,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.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; } @@ -741,103 +664,97 @@ 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.
@@ -848,31 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -902,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
@@ -960,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;
@@ -1070,59 +988,54 @@ 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) {
@@ -1132,13 +1045,10 @@ 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
@@ -1149,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; @@ -1164,8 +1074,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The format will be
      * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
@@ -1176,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 { @@ -1191,8 +1100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The format will be
      * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
@@ -1203,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
@@ -1229,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
@@ -1251,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
@@ -1289,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
@@ -1309,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
@@ -1329,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. */ @@ -1337,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
@@ -1350,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
@@ -1371,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
@@ -1399,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
@@ -1426,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
@@ -1450,7 +1333,6 @@ public Builder addAllAssetNames(java.lang.Iterable values) {
      * 
* * repeated string asset_names = 2; - * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1460,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
@@ -1473,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
@@ -1510,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
@@ -1529,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
@@ -1548,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. */ @@ -1556,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
@@ -1568,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
@@ -1588,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
@@ -1615,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
@@ -1641,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
@@ -1664,7 +1525,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
      * 
* * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1674,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
@@ -1686,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(); @@ -1703,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. */ @@ -1773,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; @@ -1799,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) { @@ -1869,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) { @@ -1892,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; } @@ -1921,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) { @@ -1944,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_; @@ -2012,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
@@ -2032,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
@@ -2056,7 +1842,6 @@ public boolean hasCondition() {
      * 
* * .google.type.Expr condition = 6; - * * @return The condition. */ public com.google.type.Expr getCondition() { @@ -2067,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
@@ -2099,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
@@ -2117,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();
@@ -2128,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
@@ -2149,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;
         }
@@ -2161,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
@@ -2191,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
@@ -2210,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
@@ -2237,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
@@ -2260,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
@@ -2298,21 +2069,19 @@ private void ensureRelationshipTypesIsMutable() {
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2327,21 +2096,18 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2356,13 +2122,12 @@ public int getRelationshipTypesCount() {
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -2370,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
@@ -2386,22 +2149,20 @@ public java.lang.String getRelationshipTypes(int index) {
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2416,29 +2177,27 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2453,28 +2212,26 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2489,25 +2246,24 @@ public Builder addRelationshipTypes(java.lang.String value) {
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2522,13 +2278,12 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 7; - * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2538,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
@@ -2554,29 +2307,29 @@ public Builder clearRelationshipTypes() {
      * it outputs the supported relationships of the types of [asset_names] and
      * [asset_types] or returns an error if any of the [asset_names] or the
      * [asset_types] has no replationship support.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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); } @@ -2586,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(); } @@ -2600,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2635,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 85% 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 461df440f50e..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
@@ -357,19 +286,17 @@ public interface FeedOrBuilder
    * it outputs the supported relationships of the types of [asset_names] and
    * [asset_types] or returns an error if any of the [asset_names] or the
    * [asset_types] has no replationship support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -384,19 +311,16 @@ public interface FeedOrBuilder
    * it outputs the supported relationships of the types of [asset_names] and
    * [asset_types] or returns an error if any of the [asset_names] or the
    * [asset_types] has no replationship support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -411,20 +335,17 @@ public interface FeedOrBuilder
    * it outputs the supported relationships of the types of [asset_names] and
    * [asset_types] or returns an error if any of the [asset_names] or the
    * [asset_types] has no replationship support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -439,15 +360,15 @@ public interface FeedOrBuilder
    * it outputs the supported relationships of the types of [asset_names] and
    * [asset_types] or returns an error if any of the [asset_names] or the
    * [asset_types] has no replationship support.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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 68% 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 e1964247c18c..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,81 +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; } - - 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; } @@ -91,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 @@ -126,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.
    * 
@@ -155,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; @@ -173,7 +141,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 (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.PubsubDestination) destination_); } @@ -187,9 +156,8 @@ 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; @@ -199,18 +167,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: @@ -239,136 +207,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +343,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 @@ -402,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_; @@ -420,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; @@ -462,15 +422,13 @@ 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(); @@ -498,20 +456,19 @@ 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) { @@ -521,12 +478,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() { @@ -536,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 @@ -557,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 @@ -582,8 +531,6 @@ public com.google.cloud.asset.v1.PubsubDestination getPubsubDestination() { } } /** - * - * *
      * Destination on Pub/Sub.
      * 
@@ -604,8 +551,6 @@ public Builder setPubsubDestination(com.google.cloud.asset.v1.PubsubDestination return this; } /** - * - * *
      * Destination on Pub/Sub.
      * 
@@ -624,8 +569,6 @@ public Builder setPubsubDestination( return this; } /** - * - * *
      * Destination on Pub/Sub.
      * 
@@ -634,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; } @@ -656,8 +596,6 @@ public Builder mergePubsubDestination(com.google.cloud.asset.v1.PubsubDestinatio return this; } /** - * - * *
      * Destination on Pub/Sub.
      * 
@@ -681,8 +619,6 @@ public Builder clearPubsubDestination() { return this; } /** - * - * *
      * Destination on Pub/Sub.
      * 
@@ -693,8 +629,6 @@ public com.google.cloud.asset.v1.PubsubDestination.Builder getPubsubDestinationB return getPubsubDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Destination on Pub/Sub.
      * 
@@ -713,8 +647,6 @@ public com.google.cloud.asset.v1.PubsubDestinationOrBuilder getPubsubDestination } } /** - * - * *
      * Destination on Pub/Sub.
      * 
@@ -722,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); } @@ -757,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(); } @@ -771,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -806,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 69% 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 67ec697d64b4..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,82 +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 {{storage_name}} location.
+ * 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; } @@ -92,64 +71,55 @@ 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 {{storage_name}} object. It's the same uri that is used by
+   * 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.
-   * If the specified {{storage_name}} object already exists and there is no
+   * If the specified Cloud Storage object already exists and there is no
    * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
    * overwritten with the exported result.
    * 
* * string uri = 1; - * * @return Whether the uri field is set. */ public boolean hasUri() { return objectUriCase_ == 1; } /** - * - * *
-   * The uri of the {{storage_name}} object. It's the same uri that is used by
+   * 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.
-   * If the specified {{storage_name}} object already exists and there is no
+   * If the specified Cloud Storage object already exists and there is no
    * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
    * overwritten with the exported result.
    * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { @@ -160,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; @@ -169,31 +140,30 @@ public java.lang.String getUri() { } } /** - * - * *
-   * The uri of the {{storage_name}} object. It's the same uri that is used by
+   * 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.
-   * If the specified {{storage_name}} object already exists and there is no
+   * If the specified Cloud Storage object already exists and there is no
    * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
    * overwritten with the exported result.
    * 
* * 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; } @@ -205,10 +175,8 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int URI_PREFIX_FIELD_NUMBER = 2; /** - * - * *
-   * The uri prefix of all generated {{storage_name}} objects. Example:
+   * The uri prefix of all generated Cloud Storage objects. Example:
    * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
    * contains assets for that type. <shard number> starts from 0. Example:
@@ -220,17 +188,14 @@ 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 {{storage_name}} objects. Example:
+   * The uri prefix of all generated Cloud Storage objects. Example:
    * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
    * contains assets for that type. <shard number> starts from 0. Example:
@@ -242,7 +207,6 @@ public boolean hasUriPrefix() {
    * 
* * string uri_prefix = 2; - * * @return The uriPrefix. */ public java.lang.String getUriPrefix() { @@ -253,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; @@ -262,10 +227,8 @@ public java.lang.String getUriPrefix() { } } /** - * - * *
-   * The uri prefix of all generated {{storage_name}} objects. Example:
+   * The uri prefix of all generated Cloud Storage objects. Example:
    * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
    * contains assets for that type. <shard number> starts from 0. Example:
@@ -277,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; } @@ -298,7 +262,6 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +273,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 (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } @@ -340,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); @@ -350,10 +314,12 @@ 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: @@ -386,136 +352,130 @@ 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 {{storage_name}} location.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -525,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 @@ -546,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_; } @@ -563,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; @@ -605,24 +563,21 @@ 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(); @@ -650,27 +605,24 @@ 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) { @@ -680,12 +632,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() { @@ -695,22 +647,20 @@ public Builder clearObjectUri() { return this; } + /** - * - * *
-     * The uri of the {{storage_name}} object. It's the same uri that is used by
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the exported result.
      * 
* * string uri = 1; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -718,21 +668,18 @@ public boolean hasUri() { return objectUriCase_ == 1; } /** - * - * *
-     * The uri of the {{storage_name}} object. It's the same uri that is used by
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the exported result.
      * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -742,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; @@ -753,32 +701,31 @@ public java.lang.String getUri() { } } /** - * - * *
-     * The uri of the {{storage_name}} object. It's the same uri that is used by
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the exported result.
      * 
* * 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; } @@ -788,49 +735,44 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
-     * The uri of the {{storage_name}} object. It's the same uri that is used by
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the exported result.
      * 
* * 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 {{storage_name}} object. It's the same uri that is used by
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the exported result.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -842,29 +784,27 @@ public Builder clearUri() { return this; } /** - * - * *
-     * The uri of the {{storage_name}} object. It's the same uri that is used by
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the exported result.
      * 
* * 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(); @@ -872,10 +812,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { } /** - * - * *
-     * The uri prefix of all generated {{storage_name}} objects. Example:
+     * The uri prefix of all generated Cloud Storage objects. Example:
      * "gs://bucket_name/object_name_prefix". Each object uri is in format:
      * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
      * contains assets for that type. <shard number> starts from 0. Example:
@@ -887,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 @@ -895,10 +832,8 @@ public boolean hasUriPrefix() { return objectUriCase_ == 2; } /** - * - * *
-     * The uri prefix of all generated {{storage_name}} objects. Example:
+     * The uri prefix of all generated Cloud Storage objects. Example:
      * "gs://bucket_name/object_name_prefix". Each object uri is in format:
      * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
      * contains assets for that type. <shard number> starts from 0. Example:
@@ -910,7 +845,6 @@ public boolean hasUriPrefix() {
      * 
* * string uri_prefix = 2; - * * @return The uriPrefix. */ @java.lang.Override @@ -920,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; @@ -931,10 +866,8 @@ public java.lang.String getUriPrefix() { } } /** - * - * *
-     * The uri prefix of all generated {{storage_name}} objects. Example:
+     * The uri prefix of all generated Cloud Storage objects. Example:
      * "gs://bucket_name/object_name_prefix". Each object uri is in format:
      * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
      * contains assets for that type. <shard number> starts from 0. Example:
@@ -946,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; } @@ -967,10 +901,8 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { } } /** - * - * *
-     * The uri prefix of all generated {{storage_name}} objects. Example:
+     * The uri prefix of all generated Cloud Storage objects. Example:
      * "gs://bucket_name/object_name_prefix". Each object uri is in format:
      * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
      * contains assets for that type. <shard number> starts from 0. Example:
@@ -982,24 +914,22 @@ 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 {{storage_name}} objects. Example:
+     * The uri prefix of all generated Cloud Storage objects. Example:
      * "gs://bucket_name/object_name_prefix". Each object uri is in format:
      * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
      * contains assets for that type. <shard number> starts from 0. Example:
@@ -1011,7 +941,6 @@ public Builder setUriPrefix(java.lang.String value) {
      * 
* * string uri_prefix = 2; - * * @return This builder for chaining. */ public Builder clearUriPrefix() { @@ -1023,10 +952,8 @@ public Builder clearUriPrefix() { return this; } /** - * - * *
-     * The uri prefix of all generated {{storage_name}} objects. Example:
+     * The uri prefix of all generated Cloud Storage objects. Example:
      * "gs://bucket_name/object_name_prefix". Each object uri is in format:
      * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
      * contains assets for that type. <shard number> starts from 0. Example:
@@ -1038,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); } @@ -1064,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(); } @@ -1078,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1113,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 71% 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 443693ee87db..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,91 +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 GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.asset.v1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The uri of the {{storage_name}} object. It's the same uri that is used by
+   * 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.
-   * If the specified {{storage_name}} object already exists and there is no
+   * If the specified Cloud Storage object already exists and there is no
    * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
    * overwritten with the exported result.
    * 
* * string uri = 1; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
-   * The uri of the {{storage_name}} object. It's the same uri that is used by
+   * 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.
-   * If the specified {{storage_name}} object already exists and there is no
+   * If the specified Cloud Storage object already exists and there is no
    * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
    * overwritten with the exported result.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
-   * The uri of the {{storage_name}} object. It's the same uri that is used by
+   * 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.
-   * If the specified {{storage_name}} object already exists and there is no
+   * If the specified Cloud Storage object already exists and there is no
    * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
    * overwritten with the exported result.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
-   * The uri prefix of all generated {{storage_name}} objects. Example:
+   * The uri prefix of all generated Cloud Storage objects. Example:
    * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
    * contains assets for that type. <shard number> starts from 0. Example:
@@ -97,15 +71,12 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri_prefix = 2; - * * @return Whether the uriPrefix field is set. */ boolean hasUriPrefix(); /** - * - * *
-   * The uri prefix of all generated {{storage_name}} objects. Example:
+   * The uri prefix of all generated Cloud Storage objects. Example:
    * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
    * contains assets for that type. <shard number> starts from 0. Example:
@@ -117,15 +88,12 @@ public interface GcsDestinationOrBuilder
    * 
* * string uri_prefix = 2; - * * @return The uriPrefix. */ java.lang.String getUriPrefix(); /** - * - * *
-   * The uri prefix of all generated {{storage_name}} objects. Example:
+   * The uri prefix of all generated Cloud Storage objects. Example:
    * "gs://bucket_name/object_name_prefix". Each object uri is in format:
    * "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
    * contains assets for that type. <shard number> starts from 0. Example:
@@ -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 c3ac16250220..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,114 +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 {{storage_name}} output result.
+ * 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 {{storage_name}} objects. Example:
+   * 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 {{storage_name}} objects. Example:
+   * 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 {{storage_name}} objects. Example:
+   * 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. */ @@ -116,24 +89,21 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
-   * List of uris of the {{storage_name}} objects. Example:
+   * 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; @@ -145,7 +115,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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -174,15 +145,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; } @@ -203,136 +174,130 @@ 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 {{storage_name}} output result.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -342,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 @@ -363,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(); @@ -379,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; @@ -456,20 +419,18 @@ 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) { @@ -479,58 +440,47 @@ 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 {{storage_name}} objects. Example:
+     * 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 {{storage_name}} objects. Example:
+     * 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 {{storage_name}} objects. Example:
+     * 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. */ @@ -538,95 +488,85 @@ public java.lang.String getUris(int index) { return uris_.get(index); } /** - * - * *
-     * List of uris of the {{storage_name}} objects. Example:
+     * 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 {{storage_name}} objects. Example:
+     * 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 {{storage_name}} objects. Example:
+     * 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 {{storage_name}} objects. Example:
+     * 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 {{storage_name}} objects. Example:
+     * 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() { @@ -636,31 +576,29 @@ public Builder clearUris() { return this; } /** - * - * *
-     * List of uris of the {{storage_name}} objects. Example:
+     * 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); } @@ -670,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(); } @@ -684,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -719,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 51% 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 aa285d20b61b..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 {{storage_name}} objects. Example:
+   * 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 {{storage_name}} objects. Example:
+   * 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 {{storage_name}} objects. Example:
+   * 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 {{storage_name}} objects. Example:
+   * 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 63% 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 b5428fcb0f9d..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,77 +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; } - - 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
@@ -79,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 @@ -91,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
@@ -107,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 { @@ -127,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +112,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_); } @@ -163,14 +137,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.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; } @@ -189,136 +164,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,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 @@ -349,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; @@ -360,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; @@ -431,19 +398,17 @@ 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) { @@ -456,8 +421,6 @@ 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
@@ -465,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; @@ -483,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
@@ -492,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 { @@ -510,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
@@ -519,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
@@ -545,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
@@ -567,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); } @@ -596,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(); } @@ -610,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -645,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 64% 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 049c25491536..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,77 +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; } - - 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
@@ -79,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 @@ -91,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
@@ -107,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 { @@ -127,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +112,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_); } @@ -163,15 +137,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; } @@ -190,136 +164,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -329,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 @@ -350,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; @@ -361,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; @@ -432,19 +398,17 @@ 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) { @@ -457,8 +421,6 @@ 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
@@ -466,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; @@ -484,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
@@ -493,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 { @@ -511,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
@@ -520,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
@@ -546,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
@@ -568,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); } @@ -597,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(); } @@ -611,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -646,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 57% 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 866ce63fc34f..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,182 +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/v1/asset_service.proto package com.google.cloud.asset.v1; /** - * - * *
- * Output configuration for export {{iam_name_short}} policy analysis
- * destination.
+ * 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 {{storage_name}} object. It's the same uri that
-     * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-     * and Editing Object
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the analysis result.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
-     * Required. The uri of the {{storage_name}} object. It's the same uri that
-     * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-     * and Editing Object
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the analysis result.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } /** - * - * *
-   * A {{storage_name}} location.
+   * 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 {{storage_name}} object. It's the same uri that
-     * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-     * and Editing Object
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the analysis result.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uri. */ @java.lang.Override @@ -185,36 +153,36 @@ 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 {{storage_name}} object. It's the same uri that
-     * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-     * and Editing Object
+     * 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.
-     * If the specified {{storage_name}} object already exists and there is no
+     * If the specified Cloud Storage object already exists and there is no
      * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
      * overwritten with the analysis result.
      * 
* * 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 { @@ -223,7 +191,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,7 +202,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(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -259,16 +227,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.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; } @@ -288,95 +255,87 @@ 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 @@ -386,43 +345,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * A {{storage_name}} location.
+     * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -432,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); } @@ -456,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; @@ -467,54 +418,46 @@ 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(); @@ -545,19 +488,17 @@ 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) { @@ -570,27 +511,25 @@ public Builder mergeFrom( private java.lang.Object uri_ = ""; /** - * - * *
-       * Required. The uri of the {{storage_name}} object. It's the same uri that
-       * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-       * and Editing Object
+       * 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.
-       * If the specified {{storage_name}} object already exists and there is no
+       * If the specified Cloud Storage object already exists and there is no
        * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
        * overwritten with the analysis result.
        * 
* * 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; @@ -599,28 +538,27 @@ public java.lang.String getUri() { } } /** - * - * *
-       * Required. The uri of the {{storage_name}} object. It's the same uri that
-       * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-       * and Editing Object
+       * 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.
-       * If the specified {{storage_name}} object already exists and there is no
+       * If the specified Cloud Storage object already exists and there is no
        * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
        * overwritten with the analysis result.
        * 
* * 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 { @@ -628,87 +566,79 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
-       * Required. The uri of the {{storage_name}} object. It's the same uri that
-       * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-       * and Editing Object
+       * 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.
-       * If the specified {{storage_name}} object already exists and there is no
+       * If the specified Cloud Storage object already exists and there is no
        * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
        * overwritten with the analysis result.
        * 
* * 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 {{storage_name}} object. It's the same uri that
-       * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-       * and Editing Object
+       * 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.
-       * If the specified {{storage_name}} object already exists and there is no
+       * If the specified Cloud Storage object already exists and there is no
        * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
        * overwritten with the analysis result.
        * 
* * 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 {{storage_name}} object. It's the same uri that
-       * is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-       * and Editing Object
+       * 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.
-       * If the specified {{storage_name}} object already exists and there is no
+       * If the specified Cloud Storage object already exists and there is no
        * [hold](https://cloud.google.com/storage/docs/object-holds), it will be
        * overwritten with the analysis result.
        * 
* * 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) { @@ -721,45 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -771,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_name}} 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_name}} 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_name}} 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].
@@ -828,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_name}} 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].
@@ -847,107 +758,86 @@ 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_name}} partitioned table.
+     * 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_name}} partitioned table.
+     * 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:
-     * * WRITE_TRUNCATE: If the table or partition already exists,
-     * {{bigquery_name}} overwrites the entire table or all the partitions data.
-     * * WRITE_APPEND: If the table or partition already exists,
-     * {{bigquery_name}} appends the data to the table or the latest partition.
+     * 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
+     * appends the data to the table or the latest partition.
      * * WRITE_EMPTY: If the table already exists and contains data, an error is
      * returned.
      * The default value is WRITE_APPEND. Each action is atomic and only occurs
-     * if {{bigquery_name}} is able to complete the job successfully. Details
-     * are at
+     * if BigQuery is able to complete the job successfully. Details are at
      * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
      * 
* * 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:
-     * * WRITE_TRUNCATE: If the table or partition already exists,
-     * {{bigquery_name}} overwrites the entire table or all the partitions data.
-     * * WRITE_APPEND: If the table or partition already exists,
-     * {{bigquery_name}} appends the data to the table or the latest partition.
+     * 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
+     * appends the data to the table or the latest partition.
      * * WRITE_EMPTY: If the table already exists and contains data, an error is
      * returned.
      * The default value is WRITE_APPEND. Each action is atomic and only occurs
-     * if {{bigquery_name}} is able to complete the job successfully. Details
-     * are at
+     * if BigQuery is able to complete the job successfully. Details are at
      * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
      * 
* * 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_name}} destination.
+   * 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_ = ""; @@ -957,48 +847,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_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_name}}
-     * tables. Partitioning can improve query performance and reduce query cost
-     * by filtering partitions. Refer to
+     * This enum determines the partition key column for the bigquery tables.
+     * Partitioning can improve query performance and reduce query cost by
+     * filtering partitions. Refer to
      * 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.
@@ -1008,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
@@ -1023,8 +905,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unspecified partition key. Tables won't be partitioned using this
        * option.
@@ -1034,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
@@ -1046,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(
@@ -1070,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;
@@ -1133,17 +1010,13 @@ private PartitionKey(int value) {
     public static final int DATASET_FIELD_NUMBER = 1;
     private volatile java.lang.Object dataset_;
     /**
-     *
-     *
      * 
-     * Required. The {{bigquery_name}} 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 @@ -1152,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_name}} 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 { @@ -1188,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_name}} 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].
@@ -1202,7 +1071,6 @@ public com.google.protobuf.ByteString getDatasetBytes() {
      * 
* * string table_prefix = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The tablePrefix. */ @java.lang.Override @@ -1211,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_name}} 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].
@@ -1232,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 { @@ -1251,71 +1118,48 @@ public com.google.protobuf.ByteString getTablePrefixBytes() { public static final int PARTITION_KEY_FIELD_NUMBER = 3; private int partitionKey_; /** - * - * *
-     * The partition key for {{bigquery_name}} partitioned table.
+     * 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_name}} partitioned table.
+     * 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:
-     * * WRITE_TRUNCATE: If the table or partition already exists,
-     * {{bigquery_name}} overwrites the entire table or all the partitions data.
-     * * WRITE_APPEND: If the table or partition already exists,
-     * {{bigquery_name}} appends the data to the table or the latest partition.
+     * 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
+     * appends the data to the table or the latest partition.
      * * WRITE_EMPTY: If the table already exists and contains data, an error is
      * returned.
      * The default value is WRITE_APPEND. Each action is atomic and only occurs
-     * if {{bigquery_name}} is able to complete the job successfully. Details
-     * are at
+     * if BigQuery is able to complete the job successfully. Details are at
      * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
      * 
* * string write_disposition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The writeDisposition. */ @java.lang.Override @@ -1324,40 +1168,39 @@ 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:
-     * * WRITE_TRUNCATE: If the table or partition already exists,
-     * {{bigquery_name}} overwrites the entire table or all the partitions data.
-     * * WRITE_APPEND: If the table or partition already exists,
-     * {{bigquery_name}} appends the data to the table or the latest partition.
+     * 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
+     * appends the data to the table or the latest partition.
      * * WRITE_EMPTY: If the table already exists and contains data, an error is
      * returned.
      * The default value is WRITE_APPEND. Each action is atomic and only occurs
-     * if {{bigquery_name}} is able to complete the job successfully. Details
-     * are at
+     * if BigQuery is able to complete the job successfully. Details are at
      * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
      * 
* * 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 { @@ -1366,7 +1209,6 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1378,17 +1220,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(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_)) { @@ -1409,11 +1249,9 @@ 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_); @@ -1426,19 +1264,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.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; } @@ -1463,101 +1302,88 @@ 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 @@ -1567,43 +1393,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * A {{bigquery_name}} destination.
+     * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1619,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); } @@ -1642,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_; @@ -1658,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(); @@ -1748,37 +1556,32 @@ 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) { @@ -1791,23 +1594,20 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** - * - * *
-       * Required. The {{bigquery_name}} 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; @@ -1816,24 +1616,22 @@ public java.lang.String getDataset() { } } /** - * - * *
-       * Required. The {{bigquery_name}} 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 { @@ -1841,70 +1639,60 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
-       * Required. The {{bigquery_name}} 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_name}} 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_name}} 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; @@ -1912,12 +1700,9 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object tablePrefix_ = ""; /** - * - * *
-       * Required. The prefix of the {{bigquery_name}} 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].
@@ -1926,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; @@ -1941,12 +1726,9 @@ public java.lang.String getTablePrefix() { } } /** - * - * *
-       * Required. The prefix of the {{bigquery_name}} 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].
@@ -1955,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 { @@ -1970,12 +1753,9 @@ public com.google.protobuf.ByteString getTablePrefixBytes() { } } /** - * - * *
-       * Required. The prefix of the {{bigquery_name}} 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].
@@ -1984,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_name}} 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].
@@ -2012,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_name}} 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].
@@ -2036,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; @@ -2053,109 +1826,73 @@ public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { private int partitionKey_ = 0; /** - * - * *
-       * The partition key for {{bigquery_name}} partitioned table.
+       * 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_name}} partitioned table.
+       * 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_name}} partitioned table.
+       * 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_name}} partitioned table.
+       * 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_name}} partitioned table.
+       * 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; @@ -2163,31 +1900,28 @@ 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:
-       * * WRITE_TRUNCATE: If the table or partition already exists,
-       * {{bigquery_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * 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
+       * appends the data to the table or the latest partition.
        * * WRITE_EMPTY: If the table already exists and contains data, an error is
        * returned.
        * The default value is WRITE_APPEND. Each action is atomic and only occurs
-       * if {{bigquery_name}} is able to complete the job successfully. Details
-       * are at
+       * if BigQuery is able to complete the job successfully. Details are at
        * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
        * 
* * 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; @@ -2196,32 +1930,30 @@ public java.lang.String getWriteDisposition() { } } /** - * - * *
-       * 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_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * 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
+       * appends the data to the table or the latest partition.
        * * WRITE_EMPTY: If the table already exists and contains data, an error is
        * returned.
        * The default value is WRITE_APPEND. Each action is atomic and only occurs
-       * if {{bigquery_name}} is able to complete the job successfully. Details
-       * are at
+       * if BigQuery is able to complete the job successfully. Details are at
        * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
        * 
* * 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 { @@ -2229,99 +1961,88 @@ 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:
-       * * WRITE_TRUNCATE: If the table or partition already exists,
-       * {{bigquery_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * 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
+       * appends the data to the table or the latest partition.
        * * WRITE_EMPTY: If the table already exists and contains data, an error is
        * returned.
        * The default value is WRITE_APPEND. Each action is atomic and only occurs
-       * if {{bigquery_name}} is able to complete the job successfully. Details
-       * are at
+       * if BigQuery is able to complete the job successfully. Details are at
        * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
        * 
* * 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:
-       * * WRITE_TRUNCATE: If the table or partition already exists,
-       * {{bigquery_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * 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
+       * appends the data to the table or the latest partition.
        * * WRITE_EMPTY: If the table already exists and contains data, an error is
        * returned.
        * The default value is WRITE_APPEND. Each action is atomic and only occurs
-       * if {{bigquery_name}} is able to complete the job successfully. Details
-       * are at
+       * if BigQuery is able to complete the job successfully. Details are at
        * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
        * 
* * 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:
-       * * WRITE_TRUNCATE: If the table or partition already exists,
-       * {{bigquery_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * 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
+       * appends the data to the table or the latest partition.
        * * WRITE_EMPTY: If the table already exists and contains data, an error is
        * returned.
        * The default value is WRITE_APPEND. Each action is atomic and only occurs
-       * if {{bigquery_name}} is able to complete the job successfully. Details
-       * are at
+       * if BigQuery is able to complete the job successfully. Details are at
        * https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
        * 
* * 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) { @@ -2334,45 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2384,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; } @@ -2417,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 {{storage_name}}.
+   * 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 @@ -2455,58 +2162,42 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
-   * Destination on {{storage_name}}.
+   * 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 {{storage_name}}.
+   * 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_name}}.
+   * 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 @@ -2514,52 +2205,36 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
-   * Destination on {{bigquery_name}}.
+   * 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_name}}.
+   * 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; @@ -2571,16 +2246,13 @@ 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); } @@ -2592,18 +2264,12 @@ 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; @@ -2613,21 +2279,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.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: @@ -2661,137 +2328,129 @@ 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_name_short}} policy analysis
-   * destination.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2807,9 +2466,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 @@ -2828,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_; @@ -2853,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; @@ -2893,23 +2550,19 @@ 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(); @@ -2937,26 +2590,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) { @@ -2966,12 +2619,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() { @@ -2981,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 {{storage_name}}.
+     * 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 @@ -3004,49 +2650,35 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * 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 {{storage_name}}.
+     * 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(); @@ -3060,19 +2692,14 @@ public Builder setGcsDestination( return this; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * 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(); @@ -3083,29 +2710,18 @@ public Builder setGcsDestination( return this; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * 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; } @@ -3121,15 +2737,11 @@ public Builder mergeGcsDestination( return this; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * 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) { @@ -3148,100 +2760,67 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * 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 {{storage_name}}.
+     * 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 {{storage_name}}.
+     * 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_name}}.
+     * 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 @@ -3249,49 +2828,35 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
-     * Destination on {{bigquery_name}}.
+     * 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_name}}.
+     * 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(); @@ -3305,19 +2870,14 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
-     * Destination on {{bigquery_name}}.
+     * 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(); @@ -3328,30 +2888,18 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
-     * Destination on {{bigquery_name}}.
+     * 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; } @@ -3367,15 +2915,11 @@ public Builder mergeBigqueryDestination( return this; } /** - * - * *
-     * Destination on {{bigquery_name}}.
+     * 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) { @@ -3394,87 +2938,61 @@ public Builder clearBigqueryDestination() { return this; } /** - * - * *
-     * Destination on {{bigquery_name}}.
+     * 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_name}}.
+     * 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_name}}.
+     * 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); } @@ -3484,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(); } @@ -3498,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -3533,4 +3051,6 @@ 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/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java new file mode 100644 index 000000000000..044214c54096 --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/IamPolicyAnalysisOutputConfigOrBuilder.java @@ -0,0 +1,65 @@ +// 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 + // @@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; + * @return Whether the gcsDestination field is set. + */ + boolean hasGcsDestination(); + /** + *
+   * Destination on Cloud Storage.
+   * 
+ * + * .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; + */ + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + + /** + *
+   * Destination on BigQuery.
+   * 
+ * + * .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; + * @return The bigqueryDestination. + */ + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination getBigqueryDestination(); + /** + *
+   * Destination on BigQuery.
+   * 
+ * + * .google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination bigquery_destination = 2; + */ + com.google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); + + 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 63% 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 81e90df2c6f4..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,80 +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_name_short}} policy analysis query message.
+ * 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)
@@ -83,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)
@@ -98,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
@@ -114,51 +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;
     }
-
-    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)
@@ -167,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 @@ -176,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)
@@ -193,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 { @@ -210,7 +178,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); } @@ -246,15 +214,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; } @@ -274,95 +242,87 @@ 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 @@ -372,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
@@ -382,34 +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()
-      private Builder() {}
+      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.ResourceSelector.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -419,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
@@ -442,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;
@@ -453,53 +407,46 @@ 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();
@@ -530,19 +477,17 @@ 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) {
@@ -555,8 +500,6 @@ public Builder mergeFrom(
 
       private java.lang.Object fullResourceName_ = "";
       /**
-       *
-       *
        * 
        * Required. The [full resource name]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
@@ -565,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; @@ -580,8 +523,6 @@ public java.lang.String getFullResourceName() { } } /** - * - * *
        * Required. The [full resource name]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
@@ -590,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 { @@ -605,8 +547,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } } /** - * - * *
        * Required. The [full resource name]
        * (https://cloud.google.com/asset-inventory/docs/resource-name-format)
@@ -615,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)
@@ -639,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)
@@ -659,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) { @@ -686,44 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -735,23 +666,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_name_short}} policy
+     * [IAM policy
      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      * The examples of supported forms are:
      * "user:mike@example.com",
@@ -763,16 +691,13 @@ 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_name_short}} policy
+     * [IAM policy
      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      * The examples of supported forms are:
      * "user:mike@example.com",
@@ -784,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,
@@ -800,54 +723,50 @@ 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;
     }
-
-    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_name_short}} policy
+     * [IAM policy
      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      * The examples of supported forms are:
      * "user:mike@example.com",
@@ -859,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 @@ -868,18 +786,17 @@ 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_name_short}} policy
+     * [IAM policy
      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
      * The examples of supported forms are:
      * "user:mike@example.com",
@@ -891,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 { @@ -908,7 +826,6 @@ public com.google.protobuf.ByteString getIdentityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -920,7 +837,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(identity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identity_); } @@ -944,15 +862,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; } @@ -972,95 +890,87 @@ 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 @@ -1070,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,
@@ -1080,34 +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()
-      private Builder() {}
+      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.IdentitySelector.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1117,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
@@ -1140,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;
@@ -1151,53 +1055,46 @@ 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();
@@ -1228,19 +1125,17 @@ 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) {
@@ -1253,11 +1148,9 @@ public Builder mergeFrom(
 
       private java.lang.Object identity_ = "";
       /**
-       *
-       *
        * 
        * Required. The identity appear in the form of principals in
-       * [{{iam_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
        * The examples of supported forms are:
        * "user:mike@example.com",
@@ -1269,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; @@ -1284,11 +1177,9 @@ public java.lang.String getIdentity() { } } /** - * - * *
        * Required. The identity appear in the form of principals in
-       * [{{iam_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
        * The examples of supported forms are:
        * "user:mike@example.com",
@@ -1300,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 { @@ -1315,11 +1207,9 @@ public com.google.protobuf.ByteString getIdentityBytes() { } } /** - * - * *
        * Required. The identity appear in the form of principals in
-       * [{{iam_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
        * The examples of supported forms are:
        * "user:mike@example.com",
@@ -1331,25 +1221,23 @@ 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_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
        * The examples of supported forms are:
        * "user:mike@example.com",
@@ -1361,21 +1249,18 @@ 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_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
        * The examples of supported forms are:
        * "user:mike@example.com",
@@ -1387,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) { @@ -1414,44 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1463,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
@@ -1589,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;
@@ -1606,69 +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;
     }
-
-    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. */ @@ -1676,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. */ @@ -1737,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; @@ -1765,7 +1600,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 < roles_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, roles_.getRaw(i)); } @@ -1805,16 +1641,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.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; } @@ -1840,95 +1677,87 @@ 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 @@ -1938,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
@@ -1950,34 +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()
-      private Builder() {}
+      // Construct using com.google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1989,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();
       }
 
@@ -2011,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();
@@ -2032,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_;
@@ -2124,27 +1942,24 @@ 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) {
@@ -2154,55 +1969,44 @@ 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. */ @@ -2210,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() { @@ -2303,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. */ @@ -2378,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() { @@ -2471,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) { @@ -2505,44 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2554,77 +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_name_short}} 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.
+     * 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 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_name_short}} 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.
+     * 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.
      * 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_name_short}} 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_name_short}} 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.
+     * 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.
      * 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.
@@ -2635,64 +2387,54 @@ 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_name_short}} policy states user A has
+     * permission P, and there's an IAM policy states user A has
      * iam.serviceAccounts.getAccessToken permission to a service account SA,
-     * and there's another {{iam_name_short}} policy states service account SA
-     * has permission P to a GCP folder F, then user A potentially has access to
-     * the GCP folder F. And those advanced analysis results will be included in
+     * and there's another IAM policy states service account SA has permission P
+     * to a GCP folder F, then user A potentially has access to the GCP folder
+     * F. And those advanced analysis results will be included in
      * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
      * Another example, if the request analyzes for who has
-     * permission P to a GCP folder F, and there's an {{iam_name_short}} policy
-     * states user A has iam.serviceAccounts.actAs permission to a service
-     * account SA, and there's another {{iam_name_short}} policy states service
-     * account SA has permission P to the GCP folder F, then user A potentially
-     * has access to the GCP folder F. And those advanced analysis results will
-     * be included in
+     * permission P to a GCP folder F, and there's an IAM policy states user A
+     * has iam.serviceAccounts.actAs permission to a service account SA, and
+     * there's another IAM policy states service account SA has permission P to
+     * the GCP folder F, then user A potentially has access to the GCP folder
+     * F. And those advanced analysis results will be included in
      * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
      * Only the following permissions are considered in this analysis:
      * * `iam.serviceAccounts.actAs`
@@ -2704,80 +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; } - - 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_name_short}} 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.
+     * 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 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 @@ -2788,21 +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_name_short}} 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.
+     * 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.
      * Default is false.
      * 
* * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandRoles. */ @java.lang.Override @@ -2813,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_name_short}} 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_name_short}} 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.
+     * 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.
      * 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.
@@ -2841,7 +2564,6 @@ public boolean getExpandRoles() {
      * 
* * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandResources. */ @java.lang.Override @@ -2852,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 @@ -2871,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 @@ -2891,29 +2608,25 @@ 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_name_short}} policy states user A has
+     * permission P, and there's an IAM policy states user A has
      * iam.serviceAccounts.getAccessToken permission to a service account SA,
-     * and there's another {{iam_name_short}} policy states service account SA
-     * has permission P to a GCP folder F, then user A potentially has access to
-     * the GCP folder F. And those advanced analysis results will be included in
+     * and there's another IAM policy states service account SA has permission P
+     * to a GCP folder F, then user A potentially has access to the GCP folder
+     * F. And those advanced analysis results will be included in
      * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
      * Another example, if the request analyzes for who has
-     * permission P to a GCP folder F, and there's an {{iam_name_short}} policy
-     * states user A has iam.serviceAccounts.actAs permission to a service
-     * account SA, and there's another {{iam_name_short}} policy states service
-     * account SA has permission P to the GCP folder F, then user A potentially
-     * has access to the GCP folder F. And those advanced analysis results will
-     * be included in
+     * permission P to a GCP folder F, and there's an IAM policy states user A
+     * has iam.serviceAccounts.actAs permission to a service account SA, and
+     * there's another IAM policy states service account SA has permission P to
+     * the GCP folder F, then user A potentially has access to the GCP folder
+     * F. And those advanced analysis results will be included in
      * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
      * Only the following permissions are considered in this analysis:
      * * `iam.serviceAccounts.actAs`
@@ -2925,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 @@ -2937,7 +2647,6 @@ public boolean getAnalyzeServiceAccountImpersonation() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2949,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_); } @@ -2978,24 +2688,28 @@ 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; @@ -3005,21 +2719,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.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; } @@ -3032,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 = (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 @@ -3148,41 +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() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3202,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 @@ -3223,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_; @@ -3239,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; @@ -3281,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()); } @@ -3327,49 +3035,42 @@ 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) { @@ -3380,24 +3081,20 @@ 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_name_short}} 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.
+       * 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 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 @@ -3405,74 +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_name_short}} 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.
+       * 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 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_name_short}} 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.
+       * 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 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_name_short}} 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.
+       * 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.
        * Default is false.
        * 
* * bool expand_roles = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandRoles. */ @java.lang.Override @@ -3480,75 +3164,61 @@ public boolean getExpandRoles() { return expandRoles_; } /** - * - * *
        * Optional. If true, the access section of result will expand any roles
-       * appearing in {{iam_name_short}} 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.
+       * 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.
        * 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_name_short}} 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.
+       * 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.
        * 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_name_short}} 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_name_short}} 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.
+       * 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.
        * 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.
@@ -3559,7 +3229,6 @@ public Builder clearExpandRoles() {
        * 
* * bool expand_resources = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The expandResources. */ @java.lang.Override @@ -3567,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_name_short}} 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_name_short}} 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.
+       * 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.
        * 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.
@@ -3595,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_name_short}} 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_name_short}} 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.
+       * 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.
        * 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.
@@ -3634,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 @@ -3662,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 @@ -3718,70 +3368,60 @@ 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_name_short}} policy states user A has
+       * permission P, and there's an IAM policy states user A has
        * iam.serviceAccounts.getAccessToken permission to a service account SA,
-       * and there's another {{iam_name_short}} policy states service account SA
-       * has permission P to a GCP folder F, then user A potentially has access to
-       * the GCP folder F. And those advanced analysis results will be included in
+       * and there's another IAM policy states service account SA has permission P
+       * to a GCP folder F, then user A potentially has access to the GCP folder
+       * F. And those advanced analysis results will be included in
        * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
        * Another example, if the request analyzes for who has
-       * permission P to a GCP folder F, and there's an {{iam_name_short}} policy
-       * states user A has iam.serviceAccounts.actAs permission to a service
-       * account SA, and there's another {{iam_name_short}} policy states service
-       * account SA has permission P to the GCP folder F, then user A potentially
-       * has access to the GCP folder F. And those advanced analysis results will
-       * be included in
+       * permission P to a GCP folder F, and there's an IAM policy states user A
+       * has iam.serviceAccounts.actAs permission to a service account SA, and
+       * there's another IAM policy states service account SA has permission P to
+       * the GCP folder F, then user A potentially has access to the GCP folder
+       * F. And those advanced analysis results will be included in
        * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
        * Only the following permissions are considered in this analysis:
        * * `iam.serviceAccounts.actAs`
@@ -3793,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 @@ -3804,29 +3441,25 @@ 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_name_short}} policy states user A has
+       * permission P, and there's an IAM policy states user A has
        * iam.serviceAccounts.getAccessToken permission to a service account SA,
-       * and there's another {{iam_name_short}} policy states service account SA
-       * has permission P to a GCP folder F, then user A potentially has access to
-       * the GCP folder F. And those advanced analysis results will be included in
+       * and there's another IAM policy states service account SA has permission P
+       * to a GCP folder F, then user A potentially has access to the GCP folder
+       * F. And those advanced analysis results will be included in
        * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
        * Another example, if the request analyzes for who has
-       * permission P to a GCP folder F, and there's an {{iam_name_short}} policy
-       * states user A has iam.serviceAccounts.actAs permission to a service
-       * account SA, and there's another {{iam_name_short}} policy states service
-       * account SA has permission P to the GCP folder F, then user A potentially
-       * has access to the GCP folder F. And those advanced analysis results will
-       * be included in
+       * permission P to a GCP folder F, and there's an IAM policy states user A
+       * has iam.serviceAccounts.actAs permission to a service account SA, and
+       * there's another IAM policy states service account SA has permission P to
+       * the GCP folder F, then user A potentially has access to the GCP folder
+       * F. And those advanced analysis results will be included in
        * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
        * Only the following permissions are considered in this analysis:
        * * `iam.serviceAccounts.actAs`
@@ -3838,43 +3471,36 @@ 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_name_short}} policy states user A has
+       * permission P, and there's an IAM policy states user A has
        * iam.serviceAccounts.getAccessToken permission to a service account SA,
-       * and there's another {{iam_name_short}} policy states service account SA
-       * has permission P to a GCP folder F, then user A potentially has access to
-       * the GCP folder F. And those advanced analysis results will be included in
+       * and there's another IAM policy states service account SA has permission P
+       * to a GCP folder F, then user A potentially has access to the GCP folder
+       * F. And those advanced analysis results will be included in
        * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
        * Another example, if the request analyzes for who has
-       * permission P to a GCP folder F, and there's an {{iam_name_short}} policy
-       * states user A has iam.serviceAccounts.actAs permission to a service
-       * account SA, and there's another {{iam_name_short}} policy states service
-       * account SA has permission P to the GCP folder F, then user A potentially
-       * has access to the GCP folder F. And those advanced analysis results will
-       * be included in
+       * permission P to a GCP folder F, and there's an IAM policy states user A
+       * has iam.serviceAccounts.actAs permission to a service account SA, and
+       * there's another IAM policy states service account SA has permission P to
+       * the GCP folder F, then user A potentially has access to the GCP folder
+       * F. And those advanced analysis results will be included in
        * [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
        * Only the following permissions are considered in this analysis:
        * * `iam.serviceAccounts.actAs`
@@ -3886,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) { @@ -3911,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(); } @@ -3925,28 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -3961,115 +3582,100 @@ 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_name_short}}
-     * conditions. Note that this value must not be earlier than the current
-     * time; otherwise, an INVALID_ARGUMENT error will be returned.
+     * The hypothetical access timestamp to evaluate IAM conditions. Note that
+     * this value must not be earlier than the current time; otherwise, an
+     * INVALID_ARGUMENT error will be returned.
      * 
* * .google.protobuf.Timestamp access_time = 1; - * * @return Whether the accessTime field is set. */ boolean hasAccessTime(); /** - * - * *
-     * The hypothetical access timestamp to evaluate {{iam_name_short}}
-     * conditions. Note that this value must not be earlier than the current
-     * time; otherwise, an INVALID_ARGUMENT error will be returned.
+     * The hypothetical access timestamp to evaluate IAM conditions. Note that
+     * this value must not be earlier than the current time; otherwise, an
+     * INVALID_ARGUMENT error will be returned.
      * 
* * .google.protobuf.Timestamp access_time = 1; - * * @return The accessTime. */ com.google.protobuf.Timestamp getAccessTime(); /** - * - * *
-     * The hypothetical access timestamp to evaluate {{iam_name_short}}
-     * conditions. Note that this value must not be earlier than the current
-     * time; otherwise, an INVALID_ARGUMENT error will be returned.
+     * The hypothetical access timestamp to evaluate IAM conditions. Note that
+     * this value must not be earlier than the current time; otherwise, an
+     * INVALID_ARGUMENT error will be returned.
      * 
* * .google.protobuf.Timestamp access_time = 1; */ 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_name_short}} conditions context.
+   * 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; } @@ -4085,36 +3691,31 @@ 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_name_short}}
-     * conditions. Note that this value must not be earlier than the current
-     * time; otherwise, an INVALID_ARGUMENT error will be returned.
+     * The hypothetical access timestamp to evaluate IAM conditions. Note that
+     * this value must not be earlier than the current time; otherwise, an
+     * INVALID_ARGUMENT error will be returned.
      * 
* * .google.protobuf.Timestamp access_time = 1; - * * @return Whether the accessTime field is set. */ @java.lang.Override @@ -4122,32 +3723,27 @@ public boolean hasAccessTime() { return timeContextCase_ == 1; } /** - * - * *
-     * The hypothetical access timestamp to evaluate {{iam_name_short}}
-     * conditions. Note that this value must not be earlier than the current
-     * time; otherwise, an INVALID_ARGUMENT error will be returned.
+     * The hypothetical access timestamp to evaluate IAM conditions. Note that
+     * this value must not be earlier than the current time; otherwise, an
+     * INVALID_ARGUMENT error will be returned.
      * 
* * .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_name_short}}
-     * conditions. Note that this value must not be earlier than the current
-     * time; otherwise, an INVALID_ARGUMENT error will be returned.
+     * The hypothetical access timestamp to evaluate IAM conditions. Note that
+     * this value must not be earlier than the current time; otherwise, an
+     * INVALID_ARGUMENT error will be returned.
      * 
* * .google.protobuf.Timestamp access_time = 1; @@ -4155,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; @@ -4173,7 +3768,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 (timeContextCase_ == 1) { output.writeMessage(1, (com.google.protobuf.Timestamp) timeContext_); } @@ -4187,9 +3783,8 @@ 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; @@ -4199,18 +3794,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: @@ -4240,95 +3835,87 @@ 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 @@ -4338,42 +3925,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * The {{iam_name_short}} conditions context.
+     * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4386,16 +3970,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_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 @@ -4409,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_; @@ -4427,63 +4008,54 @@ 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(); @@ -4511,19 +4083,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) { @@ -4533,12 +4105,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() { @@ -4548,22 +4120,17 @@ 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_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .google.protobuf.Timestamp access_time = 1; - * * @return Whether the accessTime field is set. */ @java.lang.Override @@ -4571,16 +4138,13 @@ public boolean hasAccessTime() { return timeContextCase_ == 1; } /** - * - * *
-       * The hypothetical access timestamp to evaluate {{iam_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .google.protobuf.Timestamp access_time = 1; - * * @return The accessTime. */ @java.lang.Override @@ -4598,12 +4162,10 @@ public com.google.protobuf.Timestamp getAccessTime() { } } /** - * - * *
-       * The hypothetical access timestamp to evaluate {{iam_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .google.protobuf.Timestamp access_time = 1; @@ -4622,17 +4184,16 @@ public Builder setAccessTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-       * The hypothetical access timestamp to evaluate {{iam_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .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(); @@ -4643,25 +4204,20 @@ public Builder setAccessTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
-       * The hypothetical access timestamp to evaluate {{iam_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .google.protobuf.Timestamp access_time = 1; */ 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; } @@ -4677,12 +4233,10 @@ public Builder mergeAccessTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-       * The hypothetical access timestamp to evaluate {{iam_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .google.protobuf.Timestamp access_time = 1; @@ -4704,12 +4258,10 @@ public Builder clearAccessTime() { return this; } /** - * - * *
-       * The hypothetical access timestamp to evaluate {{iam_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .google.protobuf.Timestamp access_time = 1; @@ -4718,12 +4270,10 @@ public com.google.protobuf.Timestamp.Builder getAccessTimeBuilder() { return getAccessTimeFieldBuilder().getBuilder(); } /** - * - * *
-       * The hypothetical access timestamp to evaluate {{iam_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .google.protobuf.Timestamp access_time = 1; @@ -4740,39 +4290,32 @@ public com.google.protobuf.TimestampOrBuilder getAccessTimeOrBuilder() { } } /** - * - * *
-       * The hypothetical access timestamp to evaluate {{iam_name_short}}
-       * conditions. Note that this value must not be earlier than the current
-       * time; otherwise, an INVALID_ARGUMENT error will be returned.
+       * The hypothetical access timestamp to evaluate IAM conditions. Note that
+       * this value must not be earlier than the current time; otherwise, an
+       * INVALID_ARGUMENT error will be returned.
        * 
* * .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) { @@ -4785,44 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -4834,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_name_short}} 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").
@@ -4858,7 +4396,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string scope = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The scope. */ @java.lang.Override @@ -4867,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_name_short}} 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").
@@ -4889,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 { @@ -4908,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 @@ -4925,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 @@ -4980,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 @@ -5035,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 @@ -5090,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() { @@ -5127,17 +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_name_short}} conditions
-   * evaluation.
+   * 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 @@ -5145,45 +4609,30 @@ public boolean hasConditionContext() { return conditionContext_ != null; } /** - * - * *
-   * Optional. The hypothetical context for {{iam_name_short}} conditions
-   * evaluation.
+   * 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_name_short}} conditions
-   * evaluation.
+   * 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; @@ -5195,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_); } @@ -5227,19 +4677,24 @@ 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; @@ -5249,34 +4704,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.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; @@ -5316,136 +4776,130 @@ 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_name_short}} policy analysis query message.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5485,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 @@ -5506,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_; @@ -5542,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; @@ -5582,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(); @@ -5629,52 +5080,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) { @@ -5687,11 +5138,9 @@ public Builder mergeFrom( private java.lang.Object scope_ = ""; /** - * - * *
-     * Required. The relative name of the root asset. Only resources and
-     * {{iam_name_short}} 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").
@@ -5702,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; @@ -5717,11 +5166,9 @@ public java.lang.String getScope() { } } /** - * - * *
-     * Required. The relative name of the root asset. Only resources and
-     * {{iam_name_short}} 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").
@@ -5732,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 { @@ -5747,11 +5195,9 @@ public com.google.protobuf.ByteString getScopeBytes() { } } /** - * - * *
-     * Required. The relative name of the root asset. Only resources and
-     * {{iam_name_short}} 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").
@@ -5762,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_name_short}} 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").
@@ -5791,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_name_short}} 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").
@@ -5816,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; @@ -5833,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(); @@ -5901,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) { @@ -5923,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; } @@ -5953,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) { @@ -5975,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_; @@ -6042,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(); @@ -6110,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) { @@ -6132,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; } @@ -6162,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) { @@ -6184,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_; @@ -6251,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(); @@ -6319,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) { @@ -6341,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; } @@ -6371,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) { @@ -6393,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_; @@ -6460,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) { @@ -6527,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) { @@ -6549,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; } @@ -6577,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) { @@ -6599,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_; @@ -6664,64 +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_name_short}} conditions
-     * evaluation.
+     * 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_name_short}} conditions
-     * evaluation.
+     * 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_name_short}} conditions
-     * evaluation.
+     * 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(); @@ -6735,16 +5942,11 @@ public Builder setConditionContext( return this; } /** - * - * *
-     * Optional. The hypothetical context for {{iam_name_short}} conditions
-     * evaluation.
+     * 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) { @@ -6758,26 +5960,17 @@ public Builder setConditionContext( return this; } /** - * - * *
-     * Optional. The hypothetical context for {{iam_name_short}} conditions
-     * evaluation.
+     * 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; } @@ -6789,16 +5982,11 @@ public Builder mergeConditionContext( return this; } /** - * - * *
-     * Optional. The hypothetical context for {{iam_name_short}} conditions
-     * evaluation.
+     * 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) { @@ -6812,76 +6000,55 @@ public Builder clearConditionContext() { return this; } /** - * - * *
-     * Optional. The hypothetical context for {{iam_name_short}} conditions
-     * evaluation.
+     * 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_name_short}} conditions
-     * evaluation.
+     * 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_name_short}} conditions
-     * evaluation.
+     * 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); } @@ -6891,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(); } @@ -6905,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -6940,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 53% 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 13856b168170..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_name_short}} 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_name_short}} 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,220 +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_name_short}} conditions
-   * evaluation.
+   * 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_name_short}} conditions
-   * evaluation.
+   * 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_name_short}} conditions
-   * evaluation.
+   * 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 67% 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 979b0e6c6462..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,44 +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; /** - * - * *
- * {{iam_name_short}} Policy analysis result, consisting of one
- * {{iam_name_short}} policy binding and derived
+ * IAM Policy analysis result, consisting of one IAM policy binding and derived
  * access control lists.
  * 
* * 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(); @@ -46,89 +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; } - - 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.
      * 
@@ -138,66 +104,59 @@ public interface ResourceOrBuilder com.google.cloud.asset.v1.IamPolicyAnalysisStateOrBuilder getAnalysisStateOrBuilder(); } /** - * - * *
-   * A {{gcp_name}} resource under analysis.
+   * 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 @@ -206,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 { @@ -240,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 @@ -255,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.
      * 
@@ -286,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; @@ -298,7 +246,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(fullResourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); } @@ -318,7 +267,8 @@ 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; @@ -328,18 +278,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.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; @@ -364,94 +315,87 @@ 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 @@ -461,41 +405,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * A {{gcp_name}} resource under analysis.
+     * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -511,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(); } @@ -533,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_; @@ -549,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; @@ -591,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(); @@ -627,25 +562,24 @@ 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) { @@ -658,21 +592,19 @@ 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; @@ -681,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 { @@ -704,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; @@ -769,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.
        * 
@@ -830,8 +741,6 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** - * - * *
        * The analysis state of this resource.
        * 
@@ -850,8 +759,6 @@ public Builder setAnalysisState( return this; } /** - * - * *
        * The analysis state of this resource.
        * 
@@ -862,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; } @@ -876,8 +781,6 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** - * - * *
        * The analysis state of this resource.
        * 
@@ -896,8 +799,6 @@ public Builder clearAnalysisState() { return this; } /** - * - * *
        * The analysis state of this resource.
        * 
@@ -905,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.
        * 
@@ -922,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.
        * 
@@ -937,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) { @@ -965,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(); } @@ -980,28 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1016,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.
      * 
@@ -1132,68 +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_name_short}} role or permission under analysis.
+   * 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; } @@ -1209,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() { @@ -1263,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; @@ -1272,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; } @@ -1301,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() { @@ -1333,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; @@ -1342,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; } @@ -1372,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 @@ -1387,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.
      * 
@@ -1418,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; @@ -1430,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_); } @@ -1456,7 +1290,8 @@ 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; @@ -1466,25 +1301,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.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: @@ -1522,94 +1359,87 @@ 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 @@ -1619,41 +1449,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * An {{iam_name_short}} role or permission under analysis.
+     * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1669,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 @@ -1690,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_; } @@ -1712,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; @@ -1754,30 +1578,26 @@ 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(); @@ -1805,33 +1625,31 @@ 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) { @@ -1841,12 +1659,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() { @@ -1856,15 +1674,13 @@ public Builder clearOneofAccess() { return this; } + /** - * - * *
        * The role.
        * 
* * string role = 1; - * * @return Whether the role field is set. */ @java.lang.Override @@ -1872,14 +1688,11 @@ public boolean hasRole() { return oneofAccessCase_ == 1; } /** - * - * *
        * The role.
        * 
* * string role = 1; - * * @return The role. */ @java.lang.Override @@ -1889,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; @@ -1900,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; } @@ -1928,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() { @@ -1968,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(); @@ -1991,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 @@ -2006,14 +1809,11 @@ public boolean hasPermission() { return oneofAccessCase_ == 2; } /** - * - * *
        * The permission.
        * 
* * string permission = 2; - * * @return The permission. */ @java.lang.Override @@ -2023,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; @@ -2034,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; } @@ -2062,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() { @@ -2102,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(); @@ -2126,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.
        * 
@@ -2187,8 +1967,6 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** - * - * *
        * The analysis state of this access.
        * 
@@ -2207,8 +1985,6 @@ public Builder setAnalysisState( return this; } /** - * - * *
        * The analysis state of this access.
        * 
@@ -2219,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; } @@ -2233,8 +2007,6 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** - * - * *
        * The analysis state of this access.
        * 
@@ -2253,8 +2025,6 @@ public Builder clearAnalysisState() { return this; } /** - * - * *
        * The analysis state of this access.
        * 
@@ -2262,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.
        * 
@@ -2279,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.
        * 
@@ -2294,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) { @@ -2322,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(); } @@ -2336,28 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2372,19 +2132,17 @@ 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_name_short}} policy
+     * [IAM policy
      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
      * as:
      * - user:foo@google.com
@@ -2397,16 +2155,13 @@ public interface IdentityOrBuilder
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * The identity name in any form of members appear in
-     * [{{iam_name_short}} policy
+     * [IAM policy
      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
      * as:
      * - user:foo@google.com
@@ -2419,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.
      * 
@@ -2460,62 +2207,56 @@ 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; } - - 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_name_short}} policy
+     * [IAM policy
      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
      * as:
      * - user:foo@google.com
@@ -2528,7 +2269,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -2537,18 +2277,17 @@ 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_name_short}} policy
+     * [IAM policy
      * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
      * as:
      * - user:foo@google.com
@@ -2561,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 { @@ -2580,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 @@ -2595,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.
      * 
@@ -2626,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; @@ -2638,7 +2367,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_); } @@ -2658,7 +2388,8 @@ 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; @@ -2668,18 +2399,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.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; @@ -2704,94 +2436,87 @@ 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 @@ -2801,41 +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() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2851,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(); } @@ -2873,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_; @@ -2889,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; @@ -2931,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(); @@ -2967,25 +2683,24 @@ 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) { @@ -2998,11 +2713,9 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * The identity name in any form of members appear in
-       * [{{iam_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
        * as:
        * - user:foo@google.com
@@ -3015,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; @@ -3030,11 +2743,9 @@ public java.lang.String getName() { } } /** - * - * *
        * The identity name in any form of members appear in
-       * [{{iam_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
        * as:
        * - user:foo@google.com
@@ -3047,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 { @@ -3062,11 +2774,9 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * The identity name in any form of members appear in
-       * [{{iam_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
        * as:
        * - user:foo@google.com
@@ -3079,25 +2789,23 @@ 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_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
        * as:
        * - user:foo@google.com
@@ -3110,21 +2818,18 @@ 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_name_short}} policy
+       * [IAM policy
        * binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
        * as:
        * - user:foo@google.com
@@ -3137,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; @@ -3154,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.
        * 
@@ -3215,8 +2907,6 @@ public Builder setAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisState return this; } /** - * - * *
        * The analysis state of this identity.
        * 
@@ -3235,8 +2925,6 @@ public Builder setAnalysisState( return this; } /** - * - * *
        * The analysis state of this identity.
        * 
@@ -3247,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; } @@ -3261,8 +2947,6 @@ public Builder mergeAnalysisState(com.google.cloud.asset.v1.IamPolicyAnalysisSta return this; } /** - * - * *
        * The analysis state of this identity.
        * 
@@ -3281,8 +2965,6 @@ public Builder clearAnalysisState() { return this; } /** - * - * *
        * The analysis state of this identity.
        * 
@@ -3290,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.
        * 
@@ -3307,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.
        * 
@@ -3322,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) { @@ -3350,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(); } @@ -3365,28 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -3401,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_ = ""; @@ -3488,42 +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; } - - 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 @@ -3532,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 { @@ -3566,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 @@ -3583,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 { @@ -3615,7 +3266,6 @@ public com.google.protobuf.ByteString getTargetNodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3627,7 +3277,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(sourceNode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceNode_); } @@ -3657,16 +3308,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.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; } @@ -3688,94 +3340,87 @@ 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 @@ -3785,41 +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() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3831,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 @@ -3852,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(); @@ -3864,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; @@ -3906,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(); @@ -3942,25 +3580,22 @@ 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) { @@ -3973,21 +3608,19 @@ 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; @@ -3996,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 { @@ -4019,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; @@ -4084,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; @@ -4107,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 { @@ -4130,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) { @@ -4205,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(); } @@ -4219,28 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -4255,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;
@@ -4273,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;
@@ -4287,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;
@@ -4299,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;
@@ -4309,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;
@@ -4326,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;
@@ -4336,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;
@@ -4350,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;
@@ -4362,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;
@@ -4372,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;
@@ -4389,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.
      * 
@@ -4421,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.
      * 
@@ -4437,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.
      * 
@@ -4472,37 +4048,29 @@ 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_name_short}} policy binding.
+     * 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_name_short}} policy binding.
+     * 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_name_short}} policy binding.
+     * defined in the above IAM policy binding.
      * 
* * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; @@ -4510,17 +4078,14 @@ com.google.cloud.asset.v1.IamPolicyAnalysisResult.EdgeOrBuilder getResourceEdges com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder(); } /** - * - * *
-   * An access control list, derived from the above {{iam_name_short}} policy
-   * binding, which contains a set of resources and accesses. May include one
+   * An access control list, derived from the above IAM policy binding, which
+   * contains a set of resources and accesses. May include one
    * item from each set to compose an access control entry.
-   * NOTICE that there could be multiple access control lists for one
-   * {{iam_name_short}} policy binding. The access control lists are created
-   * based on resource and access combinations.
-   * For example, assume we have the following cases in one
-   * {{iam_name_short}} policy binding:
+   * NOTICE that there could be multiple access control lists for one IAM policy
+   * binding. The access control lists are created based on resource and access
+   * combinations.
+   * For example, assume we have the following cases in one IAM policy binding:
    * - Permission P1 and P2 apply to resource R1 and R2;
    * - Permission P3 applies to resource R2 and R3;
    * This will result in the following access control lists:
@@ -4530,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();
@@ -4548,35 +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;
     }
-
-    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;
@@ -4586,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;
@@ -4602,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;
@@ -4623,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;
@@ -4638,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;
@@ -4649,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;
@@ -4668,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;
@@ -4684,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;
@@ -4705,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;
@@ -4720,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;
@@ -4739,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.
      * 
@@ -4754,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.
      * 
@@ -4774,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.
      * 
@@ -4798,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.
      * 
@@ -4817,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.
      * 
@@ -4832,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_name_short}} policy binding.
+     * 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 @@ -4856,41 +4371,32 @@ public boolean hasConditionEvaluation() { return conditionEvaluation_ != null; } /** - * - * *
      * Condition evaluation for this AccessControlList, if there is a condition
-     * defined in the above {{iam_name_short}} policy binding.
+     * 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_name_short}} policy binding.
+     * defined in the above IAM policy binding.
      * 
* * .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; @@ -4902,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)); } @@ -4925,17 +4432,20 @@ 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; @@ -4945,20 +4455,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.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; @@ -4993,95 +4506,87 @@ 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 @@ -5091,17 +4596,14 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * An access control list, derived from the above {{iam_name_short}} policy
-     * binding, which contains a set of resources and accesses. May include one
+     * An access control list, derived from the above IAM policy binding, which
+     * contains a set of resources and accesses. May include one
      * item from each set to compose an access control entry.
-     * NOTICE that there could be multiple access control lists for one
-     * {{iam_name_short}} policy binding. The access control lists are created
-     * based on resource and access combinations.
-     * For example, assume we have the following cases in one
-     * {{iam_name_short}} policy binding:
+     * NOTICE that there could be multiple access control lists for one IAM policy
+     * binding. The access control lists are created based on resource and access
+     * combinations.
+     * For example, assume we have the following cases in one IAM policy binding:
      * - Permission P1 and P2 apply to resource R1 and R2;
      * - Permission P3 applies to resource R2 and R3;
      * This will result in the following access control lists:
@@ -5111,34 +4613,33 @@ 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) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5173,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
@@ -5196,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)) {
@@ -5239,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()) {
@@ -5304,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_);
             }
@@ -5331,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_);
             }
@@ -5358,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_);
             }
@@ -5396,62 +4884,58 @@ 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) {
@@ -5461,41 +4945,30 @@ 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 { @@ -5503,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) { @@ -5522,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) { @@ -5541,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) { @@ -5567,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()); @@ -5591,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(); @@ -5617,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) { @@ -5643,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) { @@ -5666,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()); @@ -5690,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); @@ -5714,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) { @@ -5736,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) { @@ -5758,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 { @@ -5815,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;
@@ -5914,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 {
@@ -5923,8 +5324,6 @@ private void ensureAccessesIsMutable() {
         }
       }
       /**
-       *
-       *
        * 
        * The accesses that match one of the following conditions:
        * - The access_selector, if it is specified in request;
@@ -5941,8 +5340,6 @@ public int getAccessesCount() {
         }
       }
       /**
-       *
-       *
        * 
        * The accesses that match one of the following conditions:
        * - The access_selector, if it is specified in request;
@@ -5959,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;
@@ -5984,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;
@@ -5995,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());
@@ -6007,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;
@@ -6031,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;
@@ -6056,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;
@@ -6078,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;
@@ -6089,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());
@@ -6101,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;
@@ -6112,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);
@@ -6124,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;
@@ -6145,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;
@@ -6166,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;
@@ -6181,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;
@@ -6194,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;
@@ -6210,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 {
@@ -6220,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;
@@ -6231,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;
@@ -6248,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;
@@ -6264,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 { @@ -6329,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) { @@ -6352,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) { @@ -6375,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) { @@ -6405,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()); @@ -6433,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(); @@ -6463,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) { @@ -6493,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) { @@ -6520,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()); @@ -6548,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); @@ -6576,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) { @@ -6602,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) { @@ -6628,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 { @@ -6697,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(), @@ -6783,52 +6029,39 @@ 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_name_short}} policy binding.
+       * 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_name_short}} policy binding.
+       * 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_name_short}} policy binding.
+       * defined in the above IAM policy binding.
        * 
* * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; @@ -6847,11 +6080,9 @@ 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_name_short}} policy binding.
+       * defined in the above IAM policy binding.
        * 
* * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; @@ -6868,11 +6099,9 @@ public Builder setConditionEvaluation( return this; } /** - * - * *
        * Condition evaluation for this AccessControlList, if there is a condition
-       * defined in the above {{iam_name_short}} policy binding.
+       * defined in the above IAM policy binding.
        * 
* * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; @@ -6881,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; } @@ -6895,11 +6122,9 @@ 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_name_short}} policy binding.
+       * defined in the above IAM policy binding.
        * 
* * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 4; @@ -6916,67 +6141,55 @@ public Builder clearConditionEvaluation() { return this; } /** - * - * *
        * Condition evaluation for this AccessControlList, if there is a condition
-       * defined in the above {{iam_name_short}} policy binding.
+       * defined in the above IAM policy binding.
        * 
* * .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_name_short}} policy binding.
+       * defined in the above IAM policy binding.
        * 
* * .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_name_short}} policy binding.
+       * defined in the above IAM policy binding.
        * 
* * .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) { @@ -6989,44 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -7038,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:
@@ -7061,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:
@@ -7076,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:
@@ -7089,8 +6293,6 @@ public interface IdentityListOrBuilder
      */
     int getIdentitiesCount();
     /**
-     *
-     *
      * 
      * Only the identities that match one of the following conditions will be
      * presented:
@@ -7100,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:
@@ -7118,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; @@ -7216,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(); @@ -7241,35 +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; } - - 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:
@@ -7280,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:
@@ -7297,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:
@@ -7319,8 +6483,6 @@ public int getIdentitiesCount() {
       return identities_.size();
     }
     /**
-     *
-     *
      * 
      * Only the identities that match one of the following conditions will be
      * presented:
@@ -7335,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:
@@ -7347,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; @@ -7423,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; @@ -7445,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; @@ -7469,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; @@ -7481,7 +6614,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 < identities_.size(); i++) { output.writeMessage(1, identities_.get(i)); } @@ -7498,10 +6632,12 @@ 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; @@ -7511,16 +6647,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.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; } @@ -7546,94 +6683,87 @@ 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 @@ -7643,41 +6773,39 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -7699,14 +6827,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_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(); } @@ -7721,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)) { @@ -7750,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()) { @@ -7814,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_); } @@ -7841,10 +6960,9 @@ 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_); } @@ -7876,41 +6994,38 @@ 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) { @@ -7920,30 +7035,21 @@ 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:
@@ -7951,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 { @@ -7963,8 +7067,6 @@ private void ensureIdentitiesIsMutable() { } } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -7972,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) { @@ -7983,8 +7084,6 @@ public int getIdentitiesCount() { } } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -7992,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) { @@ -8003,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:
@@ -8012,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) { @@ -8030,8 +7125,6 @@ public Builder setIdentities( return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8039,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()); @@ -8055,8 +7146,6 @@ public Builder setIdentities( return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8064,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(); @@ -8082,8 +7169,6 @@ public Builder addIdentities( return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8091,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) { @@ -8109,8 +7193,6 @@ public Builder addIdentities( return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8118,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) { @@ -8133,8 +7214,6 @@ public Builder addIdentities( return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8142,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()); @@ -8158,8 +7235,6 @@ public Builder addIdentities( return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8167,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); @@ -8183,8 +7257,6 @@ public Builder addAllIdentities( return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8192,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) { @@ -8206,8 +7277,6 @@ public Builder clearIdentities() { return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8215,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) { @@ -8229,8 +7297,6 @@ public Builder removeIdentities(int index) { return this; } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8238,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:
@@ -8255,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:
@@ -8276,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 { @@ -8289,8 +7346,6 @@ public Builder removeIdentities(int index) { } } /** - * - * *
        * Only the identities that match one of the following conditions will be
        * presented:
@@ -8298,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:
@@ -8317,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:
@@ -8337,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 { @@ -8407,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; @@ -8432,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; @@ -8457,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; @@ -8489,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()); @@ -8519,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; @@ -8550,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; @@ -8582,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; @@ -8611,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()); @@ -8641,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); @@ -8671,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; @@ -8699,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; @@ -8727,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; @@ -8749,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; @@ -8769,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 { @@ -8802,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) { @@ -8900,44 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 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; @@ -8949,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 @@ -8978,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 { @@ -9015,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 {{iam_name_short}} policy binding under analysis.
+   * The Cloud IAM policy binding under analysis.
    * 
* * .google.iam.v1.Binding iam_binding = 2; - * * @return Whether the iamBinding field is set. */ @java.lang.Override @@ -9030,14 +7951,11 @@ public boolean hasIamBinding() { return iamBinding_ != null; } /** - * - * *
-   * The {{iam_name_short}} policy binding under analysis.
+   * The Cloud IAM policy binding under analysis.
    * 
* * .google.iam.v1.Binding iam_binding = 2; - * * @return The iamBinding. */ @java.lang.Override @@ -9045,10 +7963,8 @@ public com.google.iam.v1.Binding getIamBinding() { return iamBinding_ == null ? com.google.iam.v1.Binding.getDefaultInstance() : iamBinding_; } /** - * - * *
-   * The {{iam_name_short}} policy binding under analysis.
+   * The Cloud IAM policy binding under analysis.
    * 
* * .google.iam.v1.Binding iam_binding = 2; @@ -9059,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 @@ -9177,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 @@ -9233,7 +8097,6 @@ public boolean getFullyExplored() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9245,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_); } @@ -9271,21 +8135,23 @@ 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; @@ -9295,25 +8161,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.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; } @@ -9340,144 +8210,138 @@ 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_name_short}} Policy analysis result, consisting of one
-   * {{iam_name_short}} policy binding and derived
+   * IAM Policy analysis result, consisting of one IAM policy binding and derived
    * access control lists.
    * 
* * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -9508,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 @@ -9529,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) { @@ -9561,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; @@ -9601,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(); @@ -9628,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_); } @@ -9669,52 +8529,49 @@ 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) { @@ -9724,29 +8581,24 @@ 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)
-     * 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; @@ -9755,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 { @@ -9781,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; @@ -9855,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 {{iam_name_short}} policy binding under analysis.
+     * 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 {{iam_name_short}} policy binding under analysis.
+     * The Cloud IAM policy binding under analysis.
      * 
* * .google.iam.v1.Binding iam_binding = 2; - * * @return The iamBinding. */ public com.google.iam.v1.Binding getIamBinding() { @@ -9892,10 +8719,8 @@ public com.google.iam.v1.Binding getIamBinding() { } } /** - * - * *
-     * The {{iam_name_short}} policy binding under analysis.
+     * The Cloud IAM policy binding under analysis.
      * 
* * .google.iam.v1.Binding iam_binding = 2; @@ -9914,15 +8739,14 @@ public Builder setIamBinding(com.google.iam.v1.Binding value) { return this; } /** - * - * *
-     * The {{iam_name_short}} policy binding under analysis.
+     * 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(); @@ -9933,10 +8757,8 @@ public Builder setIamBinding(com.google.iam.v1.Binding.Builder builderForValue) return this; } /** - * - * *
-     * The {{iam_name_short}} policy binding under analysis.
+     * The Cloud IAM policy binding under analysis.
      * 
* * .google.iam.v1.Binding iam_binding = 2; @@ -9945,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; } @@ -9957,10 +8779,8 @@ public Builder mergeIamBinding(com.google.iam.v1.Binding value) { return this; } /** - * - * *
-     * The {{iam_name_short}} policy binding under analysis.
+     * The Cloud IAM policy binding under analysis.
      * 
* * .google.iam.v1.Binding iam_binding = 2; @@ -9977,24 +8797,20 @@ public Builder clearIamBinding() { return this; } /** - * - * *
-     * The {{iam_name_short}} policy binding under analysis.
+     * The Cloud IAM policy binding under analysis.
      * 
* * .google.iam.v1.Binding iam_binding = 2; */ public com.google.iam.v1.Binding.Builder getIamBindingBuilder() { - + onChanged(); return getIamBindingFieldBuilder().getBuilder(); } /** - * - * *
-     * The {{iam_name_short}} policy binding under analysis.
+     * The Cloud IAM policy binding under analysis.
      * 
* * .google.iam.v1.Binding iam_binding = 2; @@ -10003,70 +8819,52 @@ 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 {{iam_name_short}} policy binding under analysis.
+     * The Cloud IAM policy binding under analysis.
      * 
* * .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 { @@ -10074,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) { @@ -10095,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 { @@ -10117,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) { @@ -10145,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()); @@ -10172,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(); @@ -10200,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) { @@ -10228,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()); @@ -10254,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()); @@ -10281,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); @@ -10308,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) { @@ -10332,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) { @@ -10356,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 { @@ -10419,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(), @@ -10503,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(); @@ -10571,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; @@ -10593,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; } @@ -10623,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; @@ -10645,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 @@ -10729,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); } @@ -10779,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(); } @@ -10793,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -10828,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 70% 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 0047a4a4a95a..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,35 +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;
   }
-
-  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:
@@ -84,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:
@@ -104,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; @@ -117,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 @@ -133,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 { @@ -164,7 +134,6 @@ public com.google.protobuf.ByteString getCauseBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,7 +145,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 (code_ != com.google.rpc.Code.OK.getNumber()) { output.writeEnum(1, code_); } @@ -193,7 +163,8 @@ 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_); @@ -206,16 +177,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; } @@ -236,104 +207,97 @@ 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.
@@ -341,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -378,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
@@ -399,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();
@@ -411,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;
@@ -451,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());
       }
@@ -486,25 +448,22 @@ 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) {
@@ -517,8 +476,6 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * The Google standard error code that best describes the state.
      * For example:
@@ -529,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:
@@ -549,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:
@@ -572,7 +522,6 @@ public Builder setCodeValue(int value) {
      * 
* * .google.rpc.Code code = 1; - * * @return The code. */ @java.lang.Override @@ -582,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:
@@ -594,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. */ @@ -602,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:
@@ -620,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; @@ -632,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; @@ -654,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 { @@ -676,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); } @@ -747,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(); } @@ -761,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -796,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 64% 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 b259f9e38d33..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,43 +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_name_short}} Policy search, containing information of an
- * {{iam_name_short}} policy.
+ * 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_ = ""; @@ -48,38 +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; } - - 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:`).
@@ -90,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:`).
@@ -108,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:`).
@@ -132,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:`).
@@ -153,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:`).
@@ -177,216 +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_name_short}} policy search result.
+   * 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_name_short}} permissions
+     * 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. */ @@ -394,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; @@ -422,7 +351,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 < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -451,16 +381,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.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; } @@ -481,103 +410,88 @@ 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 @@ -587,43 +501,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-       * {{iam_name_short}} permissions
+       * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -633,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); } @@ -656,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(); @@ -674,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_; @@ -758,20 +655,18 @@ 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) { @@ -781,55 +676,44 @@ 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. */ @@ -837,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() { @@ -930,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) { @@ -964,45 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1014,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); @@ -1060,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:`).
@@ -1072,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:`).
@@ -1105,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:`).
@@ -1129,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:`).
@@ -1160,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(); } @@ -1181,7 +1009,6 @@ public boolean containsMatchedPermissions(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1193,8 +1020,10 @@ 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, @@ -1208,20 +1037,15 @@ 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__); + 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; @@ -1231,16 +1055,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.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; } @@ -1262,94 +1085,87 @@ 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 @@ -1359,61 +1175,61 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result.
+     * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1422,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(); } @@ -1444,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(); @@ -1457,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; @@ -1499,10 +1310,9 @@ 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; @@ -1529,27 +1339,20 @@ public Builder mergeFrom( case 0: done = true; break; - 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: + 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) { @@ -1559,35 +1362,24 @@ 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< - 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(); @@ -1599,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:`).
@@ -1611,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:`).
@@ -1644,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:`).
@@ -1668,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:`).
@@ -1700,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(); } @@ -1721,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:`).
@@ -1737,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:`).
@@ -1769,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:`).
@@ -1799,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) { @@ -1824,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(); } @@ -1839,28 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1875,18 +1625,17 @@ 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_name_short}} policy. Example:
+   * The full resource name of the resource associated with this IAM policy.
+   * Example:
    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-   * See [{{cai_name}} Resource Name
+   * See [Cloud Asset Inventory Resource Name
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `resource`:
@@ -1894,7 +1643,6 @@ public com.google.cloud.asset.v1.IamPolicySearchResult.Explanation getDefaultIns
    * 
* * string resource = 1; - * * @return The resource. */ @java.lang.Override @@ -1903,20 +1651,19 @@ 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_name_short}} policy. Example:
+   * The full resource name of the resource associated with this IAM policy.
+   * Example:
    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-   * See [{{cai_name}} Resource Name
+   * See [Cloud Asset Inventory Resource Name
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `resource`:
@@ -1924,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 { @@ -1943,18 +1691,14 @@ 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_name_short}} policy.
-   * Example:
+   * The type of the resource associated with this IAM policy. Example:
    * `compute.googleapis.com/Disk`.
    * To search against the `asset_type`:
    * * specify the `asset_types` field in your search request.
    * 
* * string asset_type = 5; - * * @return The assetType. */ @java.lang.Override @@ -1963,33 +1707,32 @@ 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_name_short}} policy.
-   * Example:
+   * The type of the resource associated with this IAM policy. Example:
    * `compute.googleapis.com/Disk`.
    * To search against the `asset_type`:
    * * specify the `asset_types` field in your search request.
    * 
* * 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 { @@ -2000,21 +1743,17 @@ 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_name}} resource belongs to, in the
-   * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-   * on a resource (like VM instance, {{storage_name}} bucket), the project
-   * field will indicate the project that contains the resource. If an
-   * {{iam_name_short}} policy is set on a folder or orgnization, this field
-   * will be empty.
+   * 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
+   * instance, Cloud Storage bucket), the project field will indicate the
+   * project that contains the resource. If an IAM policy is set on a folder or
+   * orgnization, this field will be empty.
    * To search against the `project`:
    * * specify the `scope` field as this project in your search request.
    * 
* * string project = 2; - * * @return The project. */ @java.lang.Override @@ -2023,36 +1762,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 the associated {{gcp_name}} resource belongs to, in the
-   * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-   * on a resource (like VM instance, {{storage_name}} bucket), the project
-   * field will indicate the project that contains the resource. If an
-   * {{iam_name_short}} policy is set on a folder or orgnization, this field
-   * will be empty.
+   * 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
+   * instance, Cloud Storage bucket), the project field will indicate the
+   * project that contains the resource. If an IAM policy is set on a folder or
+   * orgnization, this field will be empty.
    * To search against the `project`:
    * * specify the `scope` field as this project in your search request.
    * 
* * 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 { @@ -2063,12 +1801,9 @@ 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_name_short}} policy belongs to, in the form of
-   * folders/{FOLDER_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy
+   * The folder(s) that the IAM policy belongs to, in the form of
+   * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    * belongs to one or more folders.
    * To search against `folders`:
    * * use a field query. Example: `folders:(123 OR 456)`
@@ -2077,19 +1812,16 @@ 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_name_short}} policy belongs to, in the form of
-   * folders/{FOLDER_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy
+   * The folder(s) that the IAM policy belongs to, in the form of
+   * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    * belongs to one or more folders.
    * To search against `folders`:
    * * use a field query. Example: `folders:(123 OR 456)`
@@ -2098,19 +1830,15 @@ 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_name_short}} policy belongs to, in the form of
-   * folders/{FOLDER_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy
+   * The folder(s) that the IAM policy belongs to, in the form of
+   * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    * belongs to one or more folders.
    * To search against `folders`:
    * * use a field query. Example: `folders:(123 OR 456)`
@@ -2119,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. */ @@ -2127,12 +1854,9 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** - * - * *
-   * The folder(s) that the {{iam_name_short}} policy belongs to, in the form of
-   * folders/{FOLDER_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy
+   * The folder(s) that the IAM policy belongs to, in the form of
+   * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    * belongs to one or more folders.
    * To search against `folders`:
    * * use a field query. Example: `folders:(123 OR 456)`
@@ -2141,23 +1865,21 @@ 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_name_short}} policy belongs to, in the form
+   * The organization that the IAM policy belongs to, in the form
    * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy belongs to an organization.
+   * IAM policy belongs to an organization.
    * To search against `organization`:
    * * use a field query. Example: `organization:123`
    * * use a free text query. Example: `123`
@@ -2165,7 +1887,6 @@ public com.google.protobuf.ByteString getFoldersBytes(int index) {
    * 
* * string organization = 7; - * * @return The organization. */ @java.lang.Override @@ -2174,19 +1895,18 @@ 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_name_short}} policy belongs to, in the form
+   * The organization that the IAM policy belongs to, in the form
    * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy belongs to an organization.
+   * IAM policy belongs to an organization.
    * To search against `organization`:
    * * use a field query. Example: `organization:123`
    * * use a free text query. Example: `123`
@@ -2194,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 { @@ -2213,14 +1934,11 @@ public com.google.protobuf.ByteString getOrganizationBytes() { public static final int POLICY_FIELD_NUMBER = 3; private com.google.iam.v1.Policy policy_; /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g., an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g., an empty query), this contains all the bindings.
    * To search against the `policy` bindings:
    * * use a field query:
    *     - query by the policy contained members. Example:
@@ -2232,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 @@ -2240,14 +1957,11 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g., an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g., an empty query), this contains all the bindings.
    * To search against the `policy` bindings:
    * * use a field query:
    *     - query by the policy contained members. Example:
@@ -2259,7 +1973,6 @@ public boolean hasPolicy() {
    * 
* * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ @java.lang.Override @@ -2267,14 +1980,11 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g., an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g., an empty query), this contains all the bindings.
    * To search against the `policy` bindings:
    * * use a field query:
    *     - query by the policy contained members. Example:
@@ -2295,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_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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 @@ -2311,41 +2018,32 @@ public boolean hasExplanation() { return explanation_ != null; } /** - * - * *
-   * Explanation about the {{iam_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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; */ @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; @@ -2357,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_); } @@ -2395,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_); @@ -2422,26 +2123,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.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; @@ -2479,137 +2186,130 @@ 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_name_short}} Policy search, containing information of an
-   * {{iam_name_short}} policy.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2639,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 @@ -2660,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_; @@ -2690,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; @@ -2730,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(); @@ -2790,56 +2487,52 @@ 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) { @@ -2849,18 +2542,15 @@ 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_name_short}} policy. Example:
+     * The full resource name of the resource associated with this IAM policy.
+     * Example:
      * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `resource`:
@@ -2868,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; @@ -2883,13 +2573,11 @@ public java.lang.String getResource() { } } /** - * - * *
-     * The full resource name of the resource associated with this
-     * {{iam_name_short}} policy. Example:
+     * The full resource name of the resource associated with this IAM policy.
+     * Example:
      * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `resource`:
@@ -2897,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 { @@ -2912,13 +2601,11 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
-     * The full resource name of the resource associated with this
-     * {{iam_name_short}} policy. Example:
+     * The full resource name of the resource associated with this IAM policy.
+     * Example:
      * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `resource`:
@@ -2926,27 +2613,25 @@ 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_name_short}} policy. Example:
+     * The full resource name of the resource associated with this IAM policy.
+     * Example:
      * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `resource`:
@@ -2954,23 +2639,20 @@ 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_name_short}} policy. Example:
+     * The full resource name of the resource associated with this IAM policy.
+     * Example:
      * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `resource`:
@@ -2978,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; @@ -2995,24 +2677,21 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object assetType_ = ""; /** - * - * *
-     * The type of the resource associated with this {{iam_name_short}} policy.
-     * Example:
+     * The type of the resource associated with this IAM policy. Example:
      * `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
      * * specify the `asset_types` field in your search request.
      * 
* * 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; @@ -3021,25 +2700,23 @@ public java.lang.String getAssetType() { } } /** - * - * *
-     * The type of the resource associated with this {{iam_name_short}} policy.
-     * Example:
+     * The type of the resource associated with this IAM policy. Example:
      * `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
      * * specify the `asset_types` field in your search request.
      * 
* * 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 { @@ -3047,73 +2724,63 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
-     * The type of the resource associated with this {{iam_name_short}} policy.
-     * Example:
+     * The type of the resource associated with this IAM policy. Example:
      * `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
      * * specify the `asset_types` field in your search request.
      * 
* * 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_name_short}} policy.
-     * Example:
+     * The type of the resource associated with this IAM policy. Example:
      * `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
      * * specify the `asset_types` field in your search request.
      * 
* * 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_name_short}} policy.
-     * Example:
+     * The type of the resource associated with this IAM policy. Example:
      * `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
      * * specify the `asset_types` field in your search request.
      * 
* * 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; @@ -3121,27 +2788,24 @@ public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
-     * The project that the associated {{gcp_name}} resource belongs to, in the
-     * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, this field
-     * will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, this field will be empty.
      * To search against the `project`:
      * * specify the `scope` field as this project in your search request.
      * 
* * 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; @@ -3150,28 +2814,26 @@ public java.lang.String getProject() { } } /** - * - * *
-     * The project that the associated {{gcp_name}} resource belongs to, in the
-     * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, this field
-     * will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, this field will be empty.
      * To search against the `project`:
      * * specify the `scope` field as this project in your search request.
      * 
* * 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 { @@ -3179,103 +2841,88 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
-     * The project that the associated {{gcp_name}} resource belongs to, in the
-     * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, this field
-     * will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, this field will be empty.
      * To search against the `project`:
      * * specify the `scope` field as this project in your search request.
      * 
* * 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_name}} resource belongs to, in the
-     * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, this field
-     * will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, this field will be empty.
      * To search against the `project`:
      * * specify the `scope` field as this project in your search request.
      * 
* * string project = 2; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
-     * The project that the associated {{gcp_name}} resource belongs to, in the
-     * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, this field
-     * will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, this field will be empty.
      * To search against the `project`:
      * * specify the `scope` field as this project in your search request.
      * 
* * 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_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3284,19 +2931,16 @@ 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_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3305,19 +2949,15 @@ 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_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3326,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. */ @@ -3334,12 +2973,9 @@ public java.lang.String getFolders(int index) { return folders_.get(index); } /** - * - * *
-     * The folder(s) that the {{iam_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3348,20 +2984,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); } /** - * - * *
-     * The folder(s) that the {{iam_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3370,27 +3003,24 @@ 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_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3399,26 +3029,23 @@ 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_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3427,23 +3054,21 @@ 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_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3452,7 +3077,6 @@ public Builder addAllFolders(java.lang.Iterable values) {
      * 
* * repeated string folders = 6; - * * @return This builder for chaining. */ public Builder clearFolders() { @@ -3462,12 +3086,9 @@ public Builder clearFolders() { return this; } /** - * - * *
-     * The folder(s) that the {{iam_name_short}} policy belongs to, in the form of
-     * folders/{FOLDER_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy
+     * The folder(s) that the IAM policy belongs to, in the form of
+     * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
      * belongs to one or more folders.
      * To search against `folders`:
      * * use a field query. Example: `folders:(123 OR 456)`
@@ -3476,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(); @@ -3493,12 +3114,10 @@ public Builder addFoldersBytes(com.google.protobuf.ByteString value) { private java.lang.Object organization_ = ""; /** - * - * *
-     * The organization that the {{iam_name_short}} policy belongs to, in the form
+     * The organization that the IAM policy belongs to, in the form
      * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy belongs to an organization.
+     * IAM policy belongs to an organization.
      * To search against `organization`:
      * * use a field query. Example: `organization:123`
      * * use a free text query. Example: `123`
@@ -3506,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; @@ -3521,12 +3140,10 @@ public java.lang.String getOrganization() { } } /** - * - * *
-     * The organization that the {{iam_name_short}} policy belongs to, in the form
+     * The organization that the IAM policy belongs to, in the form
      * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy belongs to an organization.
+     * IAM policy belongs to an organization.
      * To search against `organization`:
      * * use a field query. Example: `organization:123`
      * * use a free text query. Example: `123`
@@ -3534,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 { @@ -3549,12 +3167,10 @@ public com.google.protobuf.ByteString getOrganizationBytes() { } } /** - * - * *
-     * The organization that the {{iam_name_short}} policy belongs to, in the form
+     * The organization that the IAM policy belongs to, in the form
      * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy belongs to an organization.
+     * IAM policy belongs to an organization.
      * To search against `organization`:
      * * use a field query. Example: `organization:123`
      * * use a free text query. Example: `123`
@@ -3562,26 +3178,24 @@ 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_name_short}} policy belongs to, in the form
+     * The organization that the IAM policy belongs to, in the form
      * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy belongs to an organization.
+     * IAM policy belongs to an organization.
      * To search against `organization`:
      * * use a field query. Example: `organization:123`
      * * use a free text query. Example: `123`
@@ -3589,22 +3203,19 @@ 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_name_short}} policy belongs to, in the form
+     * The organization that the IAM policy belongs to, in the form
      * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-     * {{iam_name_short}} policy belongs to an organization.
+     * IAM policy belongs to an organization.
      * To search against `organization`:
      * * use a field query. Example: `organization:123`
      * * use a free text query. Example: `123`
@@ -3612,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; @@ -3629,19 +3240,13 @@ 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_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3653,21 +3258,17 @@ 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_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3679,7 +3280,6 @@ public boolean hasPolicy() {
      * 
* * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -3690,14 +3290,11 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3724,14 +3321,11 @@ public Builder setPolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3744,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();
@@ -3755,14 +3350,11 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3778,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;
         }
@@ -3790,14 +3383,11 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) {
       return this;
     }
     /**
-     *
-     *
      * 
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3822,14 +3412,11 @@ public Builder clearPolicy() {
       return this;
     }
     /**
-     *
-     *
      * 
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3843,19 +3430,16 @@ public Builder clearPolicy() {
      * .google.iam.v1.Policy policy = 3;
      */
     public com.google.iam.v1.Policy.Builder getPolicyBuilder() {
-
+      
       onChanged();
       return getPolicyFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3872,18 +3456,16 @@ 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_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g., an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g., an empty query), this contains all the bindings.
      * To search against the `policy` bindings:
      * * use a field query:
      *     - query by the policy contained members. Example:
@@ -3897,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_;
@@ -3914,58 +3494,44 @@ 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ - 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(); @@ -3979,11 +3545,9 @@ public Builder setExplanation( return this; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; @@ -4000,23 +3564,18 @@ public Builder setExplanation( return this; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ - 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; } @@ -4028,11 +3587,9 @@ public Builder mergeExplanation( return this; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; @@ -4049,70 +3606,58 @@ public Builder clearExplanation() { return this; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ - 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ - 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ 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); } @@ -4122,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(); } @@ -4136,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -4171,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 59% 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 df95aa3f1d09..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,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/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_name_short}} policy. Example:
+   * The full resource name of the resource associated with this IAM policy.
+   * Example:
    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-   * See [{{cai_name}} Resource Name
+   * See [Cloud Asset Inventory Resource Name
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `resource`:
@@ -38,18 +20,15 @@ public interface IamPolicySearchResultOrBuilder
    * 
* * string resource = 1; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
-   * The full resource name of the resource associated with this
-   * {{iam_name_short}} policy. Example:
+   * The full resource name of the resource associated with this IAM policy.
+   * Example:
    * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-   * See [{{cai_name}} Resource Name
+   * See [Cloud Asset Inventory Resource Name
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `resource`:
@@ -57,90 +36,73 @@ 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_name_short}} policy.
-   * Example:
+   * The type of the resource associated with this IAM policy. Example:
    * `compute.googleapis.com/Disk`.
    * To search against the `asset_type`:
    * * specify the `asset_types` field in your search request.
    * 
* * string asset_type = 5; - * * @return The assetType. */ java.lang.String getAssetType(); /** - * - * *
-   * The type of the resource associated with this {{iam_name_short}} policy.
-   * Example:
+   * The type of the resource associated with this IAM policy. Example:
    * `compute.googleapis.com/Disk`.
    * To search against the `asset_type`:
    * * specify the `asset_types` field in your search request.
    * 
* * 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_name}} resource belongs to, in the
-   * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-   * on a resource (like VM instance, {{storage_name}} bucket), the project
-   * field will indicate the project that contains the resource. If an
-   * {{iam_name_short}} policy is set on a folder or orgnization, this field
-   * will be empty.
+   * 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
+   * instance, Cloud Storage bucket), the project field will indicate the
+   * project that contains the resource. If an IAM policy is set on a folder or
+   * orgnization, this field will be empty.
    * To search against the `project`:
    * * specify the `scope` field as this project in your search request.
    * 
* * string project = 2; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
-   * The project that the associated {{gcp_name}} resource belongs to, in the
-   * form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-   * on a resource (like VM instance, {{storage_name}} bucket), the project
-   * field will indicate the project that contains the resource. If an
-   * {{iam_name_short}} policy is set on a folder or orgnization, this field
-   * will be empty.
+   * 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
+   * instance, Cloud Storage bucket), the project field will indicate the
+   * project that contains the resource. If an IAM policy is set on a folder or
+   * orgnization, this field will be empty.
    * To search against the `project`:
    * * specify the `scope` field as this project in your search request.
    * 
* * string project = 2; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
-   * The folder(s) that the {{iam_name_short}} policy belongs to, in the form of
-   * folders/{FOLDER_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy
+   * The folder(s) that the IAM policy belongs to, in the form of
+   * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    * belongs to one or more folders.
    * To search against `folders`:
    * * use a field query. Example: `folders:(123 OR 456)`
@@ -149,17 +111,14 @@ 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_name_short}} policy belongs to, in the form of
-   * folders/{FOLDER_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy
+   * The folder(s) that the IAM policy belongs to, in the form of
+   * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    * belongs to one or more folders.
    * To search against `folders`:
    * * use a field query. Example: `folders:(123 OR 456)`
@@ -168,17 +127,13 @@ public interface IamPolicySearchResultOrBuilder
    * 
* * repeated string folders = 6; - * * @return The count of folders. */ int getFoldersCount(); /** - * - * *
-   * The folder(s) that the {{iam_name_short}} policy belongs to, in the form of
-   * folders/{FOLDER_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy
+   * The folder(s) that the IAM policy belongs to, in the form of
+   * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    * belongs to one or more folders.
    * To search against `folders`:
    * * use a field query. Example: `folders:(123 OR 456)`
@@ -187,18 +142,14 @@ 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_name_short}} policy belongs to, in the form of
-   * folders/{FOLDER_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy
+   * The folder(s) that the IAM policy belongs to, in the form of
+   * folders/{FOLDER_NUMBER}. This field is available when the IAM policy
    * belongs to one or more folders.
    * To search against `folders`:
    * * use a field query. Example: `folders:(123 OR 456)`
@@ -207,19 +158,17 @@ 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_name_short}} policy belongs to, in the form
+   * The organization that the IAM policy belongs to, in the form
    * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy belongs to an organization.
+   * IAM policy belongs to an organization.
    * To search against `organization`:
    * * use a field query. Example: `organization:123`
    * * use a free text query. Example: `123`
@@ -227,17 +176,14 @@ public interface IamPolicySearchResultOrBuilder
    * 
* * string organization = 7; - * * @return The organization. */ java.lang.String getOrganization(); /** - * - * *
-   * The organization that the {{iam_name_short}} policy belongs to, in the form
+   * The organization that the IAM policy belongs to, in the form
    * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-   * {{iam_name_short}} policy belongs to an organization.
+   * IAM policy belongs to an organization.
    * To search against `organization`:
    * * use a field query. Example: `organization:123`
    * * use a free text query. Example: `123`
@@ -245,20 +191,17 @@ public interface IamPolicySearchResultOrBuilder
    * 
* * string organization = 7; - * * @return The bytes for organization. */ - com.google.protobuf.ByteString getOrganizationBytes(); + com.google.protobuf.ByteString + getOrganizationBytes(); /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g., an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g., an empty query), this contains all the bindings.
    * To search against the `policy` bindings:
    * * use a field query:
    *     - query by the policy contained members. Example:
@@ -270,19 +213,15 @@ public interface IamPolicySearchResultOrBuilder
    * 
* * .google.iam.v1.Policy policy = 3; - * * @return Whether the policy field is set. */ boolean hasPolicy(); /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g., an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g., an empty query), this contains all the bindings.
    * To search against the `policy` bindings:
    * * use a field query:
    *     - query by the policy contained members. Example:
@@ -294,19 +233,15 @@ public interface IamPolicySearchResultOrBuilder
    * 
* * .google.iam.v1.Policy policy = 3; - * * @return The policy. */ com.google.iam.v1.Policy getPolicy(); /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g., an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g., an empty query), this contains all the bindings.
    * To search against the `policy` bindings:
    * * use a field query:
    *     - query by the policy contained members. Example:
@@ -322,37 +257,29 @@ public interface IamPolicySearchResultOrBuilder
   com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder();
 
   /**
-   *
-   *
    * 
-   * Explanation about the {{iam_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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; 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 74% 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 5c1e6fc3deb5..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,47 +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; } - - 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 @@ -96,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 { @@ -135,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).
@@ -146,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 @@ -154,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).
@@ -165,7 +134,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -173,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).
@@ -193,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".
@@ -207,21 +171,19 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() {
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -234,21 +196,18 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -261,13 +220,12 @@ public int getAssetTypesCount() {
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -275,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".
@@ -289,70 +245,58 @@ public java.lang.String getAssetTypes(int index) {
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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 @@ -363,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
@@ -372,7 +314,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -381,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
@@ -397,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 { @@ -416,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
@@ -431,21 +370,19 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -459,21 +396,18 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -487,13 +421,12 @@ public int getRelationshipTypesCount() {
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -501,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
@@ -516,22 +447,21 @@ public java.lang.String getRelationshipTypes(int index) {
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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; @@ -543,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_); } @@ -553,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) { @@ -579,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; @@ -589,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_); @@ -615,24 +547,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.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; } @@ -669,136 +606,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -824,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 @@ -845,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) { @@ -875,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; @@ -979,57 +908,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 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) { @@ -1039,31 +962,26 @@ 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"), "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; @@ -1072,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 { @@ -1100,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; @@ -1180,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).
@@ -1196,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).
@@ -1214,7 +1108,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1225,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).
@@ -1251,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).
@@ -1263,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();
@@ -1274,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).
@@ -1290,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;
         }
@@ -1302,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).
@@ -1326,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).
@@ -1339,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).
@@ -1360,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).
@@ -1377,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".
@@ -1417,21 +1291,19 @@ private void ensureAssetTypesIsMutable() {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1444,21 +1316,18 @@ public com.google.protobuf.ProtocolStringList getAssetTypesList() {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1471,13 +1340,12 @@ public int getAssetTypesCount() {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * repeated string asset_types = 3; - * * @param index The index of the element to return. * @return The assetTypes at the given index. */ @@ -1485,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".
@@ -1499,22 +1365,20 @@ public java.lang.String getAssetTypes(int index) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1527,29 +1391,27 @@ public com.google.protobuf.ByteString getAssetTypesBytes(int index) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1562,28 +1424,26 @@ public Builder setAssetTypes(int index, java.lang.String value) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1596,25 +1456,24 @@ public Builder addAssetTypes(java.lang.String value) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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".
@@ -1627,13 +1486,12 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1643,8 +1501,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
      * A list of asset types to take a snapshot for. For example:
      * "compute.googleapis.com/Disk".
@@ -1657,21 +1513,21 @@ public Builder clearAssetTypes() {
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * If specified, only matching assets will be returned, otherwise, it will
-     * snapshot all asset types. See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types.
+     * snapshot all asset types. See [Introduction to Cloud Asset
+     * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+     * for all supported asset types.
      * 
* * 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(); @@ -1680,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. */ @@ -1750,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 @@ -1792,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; @@ -1831,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
@@ -1840,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; @@ -1855,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
@@ -1864,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 { @@ -1879,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
@@ -1888,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
@@ -1911,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
@@ -1930,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
@@ -1970,21 +1786,19 @@ private void ensureRelationshipTypesIsMutable() {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -1998,21 +1812,18 @@ public com.google.protobuf.ProtocolStringList getRelationshipTypesList() {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2026,13 +1837,12 @@ public int getRelationshipTypesCount() {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 7; - * * @param index The index of the element to return. * @return The relationshipTypes at the given index. */ @@ -2040,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
@@ -2055,22 +1863,20 @@ public java.lang.String getRelationshipTypes(int index) {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2084,29 +1890,27 @@ public com.google.protobuf.ByteString getRelationshipTypesBytes(int index) {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2120,28 +1924,26 @@ public Builder setRelationshipTypes(int index, java.lang.String value) {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2155,25 +1957,24 @@ public Builder addRelationshipTypes(java.lang.String value) {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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
@@ -2187,13 +1988,12 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 7; - * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2203,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
@@ -2218,29 +2016,29 @@ public Builder clearRelationshipTypes() {
      * it snapshots the supported relationships for all [asset_types] or returns
      * an error if any of the [asset_types] has no relationship support.
      * An unspecified asset types field means all supported asset_types.
-     * See [Introduction to
-     * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-     * all supported asset types and relationship types.
+     * 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 = 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); } @@ -2250,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(); } @@ -2264,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2299,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 76% 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 f94413b0f8c3..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".
@@ -122,19 +87,17 @@ public interface ListAssetsRequestOrBuilder
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -147,19 +110,16 @@ public interface ListAssetsRequestOrBuilder
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -172,20 +132,17 @@ public interface ListAssetsRequestOrBuilder
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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".
@@ -198,62 +155,51 @@ public interface ListAssetsRequestOrBuilder
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * If specified, only matching assets will be returned, otherwise, it will
-   * snapshot all asset types. See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types.
+   * snapshot all asset types. See [Introduction to Cloud Asset
+   * Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+   * for all supported asset types.
    * 
* * 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
@@ -296,19 +237,17 @@ public interface ListAssetsRequestOrBuilder
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -322,19 +261,16 @@ public interface ListAssetsRequestOrBuilder
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -348,20 +284,17 @@ public interface ListAssetsRequestOrBuilder
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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
@@ -375,15 +308,15 @@ public interface ListAssetsRequestOrBuilder
    * it snapshots the supported relationships for all [asset_types] or returns
    * an error if any of the [asset_types] has no relationship support.
    * An unspecified asset types field means all supported asset_types.
-   * See [Introduction to
-   * {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-   * all supported asset types and relationship types.
+   * 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 = 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 72% 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 77f756613c68..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,41 +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; } - - 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 @@ -86,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 @@ -101,8 +76,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time the snapshot was taken.
    * 
@@ -117,8 +90,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** - * - * *
    * Assets.
    * 
@@ -130,8 +101,6 @@ public java.util.List getAssetsList() { return assets_; } /** - * - * *
    * Assets.
    * 
@@ -139,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.
    * 
@@ -157,8 +124,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
    * Assets.
    * 
@@ -170,8 +135,6 @@ public com.google.cloud.asset.v1.Asset getAssets(int index) { return assets_.get(index); } /** - * - * *
    * Assets.
    * 
@@ -179,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
@@ -195,7 +157,6 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) {
    * 
* * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -204,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
@@ -220,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 { @@ -237,7 +198,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,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()); } @@ -269,10 +230,12 @@ 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_); @@ -285,20 +248,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.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; } @@ -325,136 +290,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +436,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 @@ -498,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_; @@ -524,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; @@ -586,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_); } @@ -625,37 +581,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) { @@ -665,38 +621,28 @@ 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() { @@ -707,8 +653,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -729,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(); @@ -748,8 +691,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -760,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; } @@ -772,8 +713,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -792,8 +731,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -801,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.
      * 
@@ -818,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.
      * 
@@ -831,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.
      * 
@@ -880,8 +805,6 @@ public java.util.List getAssetsList() { } } /** - * - * *
      * Assets.
      * 
@@ -896,8 +819,6 @@ public int getAssetsCount() { } } /** - * - * *
      * Assets.
      * 
@@ -912,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(); @@ -934,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()); @@ -953,8 +872,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1.Asset.Builder buil return this; } /** - * - * *
      * Assets.
      * 
@@ -975,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(); @@ -997,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()); @@ -1016,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()); @@ -1035,8 +949,6 @@ public Builder addAssets(int index, com.google.cloud.asset.v1.Asset.Builder buil return this; } /** - * - * *
      * Assets.
      * 
@@ -1047,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); @@ -1055,8 +968,6 @@ public Builder addAllAssets( return this; } /** - * - * *
      * Assets.
      * 
@@ -1074,8 +985,6 @@ public Builder clearAssets() { return this; } /** - * - * *
      * Assets.
      * 
@@ -1093,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 { @@ -1138,8 +1042,6 @@ public com.google.cloud.asset.v1.AssetOrBuilder getAssetsOrBuilder(int index) { } } /** - * - * *
      * Assets.
      * 
@@ -1147,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_; @@ -1195,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
@@ -1204,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; @@ -1219,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
@@ -1228,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 { @@ -1243,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
@@ -1252,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
@@ -1275,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
@@ -1294,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); } @@ -1320,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(); } @@ -1334,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1369,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 67% 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 2998c69f5249..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,77 +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; } - - 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
@@ -79,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 @@ -88,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
@@ -104,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 { @@ -121,7 +99,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +110,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_); } @@ -157,15 +135,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; } @@ -184,136 +162,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,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 @@ -344,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; @@ -355,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; @@ -426,19 +396,17 @@ 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) { @@ -451,8 +419,6 @@ 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
@@ -460,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; @@ -475,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
@@ -484,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 { @@ -499,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
@@ -508,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
@@ -531,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
@@ -550,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); } @@ -576,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(); } @@ -590,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -625,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 68% 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 a8c959028792..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,69 +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; } - - 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.
    * 
@@ -75,8 +58,6 @@ public java.util.List getFeedsList() { return feeds_; } /** - * - * *
    * A list of feeds.
    * 
@@ -84,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.
    * 
@@ -101,8 +81,6 @@ public int getFeedsCount() { return feeds_.size(); } /** - * - * *
    * A list of feeds.
    * 
@@ -114,8 +92,6 @@ public com.google.cloud.asset.v1.Feed getFeeds(int index) { return feeds_.get(index); } /** - * - * *
    * A list of feeds.
    * 
@@ -123,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; @@ -140,7 +116,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 < feeds_.size(); i++) { output.writeMessage(1, feeds_.get(i)); } @@ -154,7 +131,8 @@ 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; @@ -164,15 +142,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; } @@ -193,128 +171,126 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -329,9 +305,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 @@ -350,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)) { @@ -370,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; @@ -429,10 +403,9 @@ 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_); } @@ -464,25 +437,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) { @@ -492,28 +465,21 @@ 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.
      * 
@@ -528,8 +494,6 @@ public java.util.List getFeedsList() { } } /** - * - * *
      * A list of feeds.
      * 
@@ -544,8 +508,6 @@ public int getFeedsCount() { } } /** - * - * *
      * A list of feeds.
      * 
@@ -560,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(); @@ -582,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()); @@ -601,8 +561,6 @@ public Builder setFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builde return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -623,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(); @@ -645,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()); @@ -664,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()); @@ -683,8 +638,6 @@ public Builder addFeeds(int index, com.google.cloud.asset.v1.Feed.Builder builde return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -695,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); @@ -703,8 +657,6 @@ public Builder addAllFeeds( return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -722,8 +674,6 @@ public Builder clearFeeds() { return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -741,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 { @@ -786,8 +731,6 @@ public com.google.cloud.asset.v1.FeedOrBuilder getFeedsOrBuilder(int index) { } } /** - * - * *
      * A list of feeds.
      * 
@@ -795,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); } @@ -851,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(); } @@ -865,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -900,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 69% 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 a98e454d5067..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,45 +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; } - - 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 @@ -92,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 { @@ -129,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
@@ -141,7 +113,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -150,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
@@ -169,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 { @@ -188,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 @@ -209,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.
@@ -219,7 +184,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -228,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.
@@ -245,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 { @@ -262,7 +226,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,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_); } @@ -300,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_); @@ -316,18 +281,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.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; } @@ -353,135 +321,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,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 @@ -518,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_; @@ -532,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; @@ -572,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(); @@ -615,37 +574,32 @@ 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) { @@ -658,24 +612,20 @@ 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
+     * 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; @@ -684,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 { @@ -710,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; @@ -784,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
@@ -796,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; @@ -811,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
@@ -823,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 { @@ -838,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
@@ -850,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
@@ -876,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
@@ -898,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 @@ -933,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; @@ -976,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.
@@ -986,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; @@ -1001,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.
@@ -1011,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 { @@ -1026,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.
@@ -1036,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.
@@ -1060,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.
@@ -1080,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); } @@ -1106,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(); } @@ -1120,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1155,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 71% 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 a91cad7d27ef..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,35 +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; } - - 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.
    * 
@@ -84,8 +63,6 @@ public java.util.List getSavedQueriesList( return savedQueries_; } /** - * - * *
    * A list of savedQueries.
    * 
@@ -93,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.
    * 
@@ -111,8 +86,6 @@ public int getSavedQueriesCount() { return savedQueries_.size(); } /** - * - * *
    * A list of savedQueries.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.asset.v1.SavedQuery getSavedQueries(int index) { return savedQueries_.get(index); } /** - * - * *
    * A list of savedQueries.
    * 
@@ -133,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 @@ -157,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 { @@ -189,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +169,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 < savedQueries_.size(); i++) { output.writeMessage(1, savedQueries_.get(i)); } @@ -218,7 +187,8 @@ 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_); @@ -231,16 +201,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.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; } @@ -264,135 +235,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +374,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 @@ -430,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)) { @@ -451,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; @@ -491,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()) { @@ -511,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_); } @@ -550,32 +511,30 @@ 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) { @@ -585,29 +544,21 @@ 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.
      * 
@@ -622,8 +573,6 @@ public java.util.List getSavedQueriesList( } } /** - * - * *
      * A list of savedQueries.
      * 
@@ -638,8 +587,6 @@ public int getSavedQueriesCount() { } } /** - * - * *
      * A list of savedQueries.
      * 
@@ -654,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(); @@ -676,8 +622,6 @@ public Builder setSavedQueries(int index, com.google.cloud.asset.v1.SavedQuery v return this; } /** - * - * *
      * A list of savedQueries.
      * 
@@ -696,8 +640,6 @@ public Builder setSavedQueries( return this; } /** - * - * *
      * A list of savedQueries.
      * 
@@ -718,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(); @@ -740,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()); @@ -759,8 +699,6 @@ public Builder addSavedQueries(com.google.cloud.asset.v1.SavedQuery.Builder buil return this; } /** - * - * *
      * A list of savedQueries.
      * 
@@ -779,8 +717,6 @@ public Builder addSavedQueries( return this; } /** - * - * *
      * A list of savedQueries.
      * 
@@ -791,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); @@ -799,8 +736,6 @@ public Builder addAllSavedQueries( return this; } /** - * - * *
      * A list of savedQueries.
      * 
@@ -818,8 +753,6 @@ public Builder clearSavedQueries() { return this; } /** - * - * *
      * A list of savedQueries.
      * 
@@ -837,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 { @@ -882,8 +810,6 @@ public com.google.cloud.asset.v1.SavedQueryOrBuilder getSavedQueriesOrBuilder(in } } /** - * - * *
      * A list of savedQueries.
      * 
@@ -891,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_; @@ -940,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; @@ -963,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 { @@ -986,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); } @@ -1060,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(); } @@ -1074,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1109,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 69% 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 768805c96057..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,84 +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; } - - 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; } @@ -94,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_name_short}},
-   * {{orgpol_name}} etc.
+   * The user friendly display name of the analysis. E.g. IAM, Organization
+   * Policy etc.
    * 
* * string display_name = 1; - * * @return The displayName. */ @java.lang.Override @@ -134,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_name_short}},
-   * {{orgpol_name}} etc.
+   * 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 { @@ -167,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 @@ -182,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.
    * 
@@ -211,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 @@ -233,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.
    * 
@@ -262,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; @@ -280,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_); } @@ -303,14 +259,12 @@ 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; @@ -320,21 +274,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.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: @@ -369,136 +326,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -516,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_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 @@ -537,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) { @@ -563,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; @@ -609,20 +558,17 @@ 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(); @@ -650,31 +596,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) { @@ -684,12 +630,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() { @@ -699,23 +645,22 @@ public Builder clearResult() { return this; } + private java.lang.Object displayName_ = ""; /** - * - * *
-     * The user friendly display name of the analysis. E.g. {{iam_name_short}},
-     * {{orgpol_name}} etc.
+     * 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; @@ -724,22 +669,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
-     * The user friendly display name of the analysis. E.g. {{iam_name_short}},
-     * {{orgpol_name}} etc.
+     * 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 { @@ -747,83 +691,70 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
-     * The user friendly display name of the analysis. E.g. {{iam_name_short}},
-     * {{orgpol_name}} etc.
+     * 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_name_short}},
-     * {{orgpol_name}} etc.
+     * 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_name_short}},
-     * {{orgpol_name}} etc.
+     * 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 @@ -831,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 @@ -856,8 +784,6 @@ public com.google.cloud.asset.v1.MoveAnalysisResult getAnalysis() { } } /** - * - * *
      * Analysis result of moving the target resource.
      * 
@@ -878,8 +804,6 @@ public Builder setAnalysis(com.google.cloud.asset.v1.MoveAnalysisResult value) { return this; } /** - * - * *
      * Analysis result of moving the target resource.
      * 
@@ -898,8 +822,6 @@ public Builder setAnalysis( return this; } /** - * - * *
      * Analysis result of moving the target resource.
      * 
@@ -908,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; } @@ -930,8 +849,6 @@ public Builder mergeAnalysis(com.google.cloud.asset.v1.MoveAnalysisResult value) return this; } /** - * - * *
      * Analysis result of moving the target resource.
      * 
@@ -955,8 +872,6 @@ public Builder clearAnalysis() { return this; } /** - * - * *
      * Analysis result of moving the target resource.
      * 
@@ -967,8 +882,6 @@ public com.google.cloud.asset.v1.MoveAnalysisResult.Builder getAnalysisBuilder() return getAnalysisFieldBuilder().getBuilder(); } /** - * - * *
      * Analysis result of moving the target resource.
      * 
@@ -987,8 +900,6 @@ public com.google.cloud.asset.v1.MoveAnalysisResultOrBuilder getAnalysisOrBuilde } } /** - * - * *
      * Analysis result of moving the target resource.
      * 
@@ -996,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 @@ -1039,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 @@ -1064,8 +962,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Description of error encountered when performing the analysis.
      * 
@@ -1086,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(); @@ -1105,8 +1000,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Description of error encountered when performing the analysis.
      * 
@@ -1115,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; } @@ -1135,8 +1027,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Description of error encountered when performing the analysis.
      * 
@@ -1160,8 +1050,6 @@ public Builder clearError() { return this; } /** - * - * *
      * Description of error encountered when performing the analysis.
      * 
@@ -1172,8 +1060,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Description of error encountered when performing the analysis.
      * 
@@ -1192,8 +1078,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** - * - * *
      * Description of error encountered when performing the analysis.
      * 
@@ -1201,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); } @@ -1232,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(); } @@ -1246,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1281,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 66% 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 c925b2b8c8cf..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_name_short}},
-   * {{orgpol_name}} etc.
+   * 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_name_short}},
-   * {{orgpol_name}} etc.
+   * 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 77% 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 953394bbbbcb..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,35 +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; } - - 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.
@@ -85,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.
@@ -95,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.
@@ -114,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.
@@ -128,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.
@@ -138,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
@@ -160,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
@@ -171,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
@@ -191,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
@@ -206,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
@@ -217,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;
@@ -234,7 +196,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 < blockers_.size(); i++) {
       output.writeMessage(1, blockers_.get(i));
     }
@@ -251,10 +214,12 @@ 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;
@@ -264,16 +229,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.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;
   }
@@ -298,136 +264,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -449,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_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 @@ -470,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)) { @@ -499,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; @@ -558,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_); } @@ -585,10 +542,9 @@ 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_); } @@ -620,39 +576,38 @@ 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) { @@ -662,28 +617,21 @@ 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.
@@ -699,8 +647,6 @@ public java.util.List getBlockersList() {
       }
     }
     /**
-     *
-     *
      * 
      * Blocking information that would prevent the target resource from moving
      * to the specified destination at runtime.
@@ -716,8 +662,6 @@ public int getBlockersCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Blocking information that would prevent the target resource from moving
      * to the specified destination at runtime.
@@ -733,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.
@@ -742,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();
@@ -756,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.
@@ -777,8 +718,6 @@ public Builder setBlockers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Blocking information that would prevent the target resource from moving
      * to the specified destination at runtime.
@@ -800,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.
@@ -809,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();
@@ -823,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.
@@ -832,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());
@@ -843,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.
@@ -864,8 +799,6 @@ public Builder addBlockers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Blocking information that would prevent the target resource from moving
      * to the specified destination at runtime.
@@ -877,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);
@@ -885,8 +819,6 @@ public Builder addAllBlockers(
       return this;
     }
     /**
-     *
-     *
      * 
      * Blocking information that would prevent the target resource from moving
      * to the specified destination at runtime.
@@ -905,8 +837,6 @@ public Builder clearBlockers() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Blocking information that would prevent the target resource from moving
      * to the specified destination at runtime.
@@ -925,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.
@@ -934,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.
@@ -947,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.
@@ -964,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 {
@@ -973,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.
@@ -983,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.
@@ -996,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.
@@ -1010,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
@@ -1066,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
@@ -1084,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
@@ -1102,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
@@ -1112,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();
@@ -1126,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
@@ -1148,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
@@ -1172,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
@@ -1182,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();
@@ -1196,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
@@ -1206,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());
@@ -1217,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
@@ -1239,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
@@ -1253,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);
@@ -1261,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
@@ -1282,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
@@ -1303,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
@@ -1313,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
@@ -1327,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
@@ -1345,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 {
@@ -1354,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
@@ -1365,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
@@ -1379,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
@@ -1394,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);
     }
 
@@ -1426,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();
   }
@@ -1440,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1475,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 64%
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 f292982aeab1..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,83 +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; } - - 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 @@ -86,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 { @@ -117,7 +95,6 @@ public com.google.protobuf.ByteString getDetailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,7 +106,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(detail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, detail_); } @@ -153,14 +131,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.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; } @@ -179,135 +158,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -317,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 @@ -348,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; @@ -419,19 +392,17 @@ 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) { @@ -444,20 +415,18 @@ 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; @@ -466,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 { @@ -488,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); } @@ -559,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(); } @@ -573,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -608,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 65% 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 9cd0ae3c1cda..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,82 +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; } - - 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; } @@ -92,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 {{storage_name}}.
+   * Destination on Cloud Storage.
    * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -129,28 +102,23 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
-   * Destination on {{storage_name}}.
+   * 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 {{storage_name}}.
+   * Destination on Cloud Storage.
    * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; @@ -158,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_name}}. The output table stores the fields in
-   * asset Protobuf as columns in {{bigquery_name}}.
+   * 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 @@ -181,30 +146,25 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
-   * Destination on {{bigquery_name}}. The output table stores the fields in
-   * asset Protobuf as columns in {{bigquery_name}}.
+   * 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_name}}. The output table stores the fields in
-   * asset Protobuf as columns in {{bigquery_name}}.
+   * Destination on BigQuery. The output table stores the fields in asset
+   * Protobuf as columns in BigQuery.
    * 
* * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; @@ -212,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; @@ -230,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 (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.GcsDestination) destination_); } @@ -247,14 +207,12 @@ 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; @@ -264,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); @@ -274,10 +232,12 @@ 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: @@ -310,136 +270,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -455,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_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 @@ -476,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_; @@ -501,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; @@ -543,20 +495,17 @@ 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(); @@ -584,26 +533,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) { @@ -613,12 +562,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() { @@ -628,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 {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -649,14 +593,11 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -674,10 +615,8 @@ public com.google.cloud.asset.v1.GcsDestination getGcsDestination() { } } /** - * - * *
-     * Destination on {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; @@ -696,10 +635,8 @@ public Builder setGcsDestination(com.google.cloud.asset.v1.GcsDestination value) return this; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; @@ -716,23 +653,18 @@ public Builder setGcsDestination( return this; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; */ 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; } @@ -748,10 +680,8 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1.GcsDestination valu return this; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; @@ -773,10 +703,8 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
-     * Destination on {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; @@ -785,10 +713,8 @@ public com.google.cloud.asset.v1.GcsDestination.Builder getGcsDestinationBuilder return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
-     * Destination on {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; @@ -805,54 +731,40 @@ public com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuil } } /** - * - * *
-     * Destination on {{storage_name}}.
+     * Destination on Cloud Storage.
      * 
* * .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_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * 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 @@ -860,15 +772,12 @@ public boolean hasBigqueryDestination() { return destinationCase_ == 2; } /** - * - * *
-     * Destination on {{bigquery_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * 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 @@ -886,11 +795,9 @@ public com.google.cloud.asset.v1.BigQueryDestination getBigqueryDestination() { } } /** - * - * *
-     * Destination on {{bigquery_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * Destination on BigQuery. The output table stores the fields in asset
+     * Protobuf as columns in BigQuery.
      * 
* * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; @@ -909,11 +816,9 @@ public Builder setBigqueryDestination(com.google.cloud.asset.v1.BigQueryDestinat return this; } /** - * - * *
-     * Destination on {{bigquery_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * Destination on BigQuery. The output table stores the fields in asset
+     * Protobuf as columns in BigQuery.
      * 
* * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; @@ -930,24 +835,19 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
-     * Destination on {{bigquery_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * Destination on BigQuery. The output table stores the fields in asset
+     * Protobuf as columns in BigQuery.
      * 
* * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; */ 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; } @@ -963,11 +863,9 @@ public Builder mergeBigqueryDestination(com.google.cloud.asset.v1.BigQueryDestin return this; } /** - * - * *
-     * Destination on {{bigquery_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * Destination on BigQuery. The output table stores the fields in asset
+     * Protobuf as columns in BigQuery.
      * 
* * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; @@ -989,11 +887,9 @@ public Builder clearBigqueryDestination() { return this; } /** - * - * *
-     * Destination on {{bigquery_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * Destination on BigQuery. The output table stores the fields in asset
+     * Protobuf as columns in BigQuery.
      * 
* * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; @@ -1002,18 +898,15 @@ public com.google.cloud.asset.v1.BigQueryDestination.Builder getBigqueryDestinat return getBigqueryDestinationFieldBuilder().getBuilder(); } /** - * - * *
-     * Destination on {{bigquery_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * Destination on BigQuery. The output table stores the fields in asset
+     * Protobuf as columns in BigQuery.
      * 
* * .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 { @@ -1024,42 +917,34 @@ public com.google.cloud.asset.v1.BigQueryDestination.Builder getBigqueryDestinat } } /** - * - * *
-     * Destination on {{bigquery_name}}. The output table stores the fields in
-     * asset Protobuf as columns in {{bigquery_name}}.
+     * Destination on BigQuery. The output table stores the fields in asset
+     * Protobuf as columns in BigQuery.
      * 
* * .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); } @@ -1069,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(); } @@ -1083,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1118,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 57% 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 ff971ff3c31f..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,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/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 {{storage_name}}.
+   * Destination on Cloud Storage.
    * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
-   * Destination on {{storage_name}}.
+   * Destination on Cloud Storage.
    * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.asset.v1.GcsDestination getGcsDestination(); /** - * - * *
-   * Destination on {{storage_name}}.
+   * Destination on Cloud Storage.
    * 
* * .google.cloud.asset.v1.GcsDestination gcs_destination = 1; @@ -59,37 +35,29 @@ public interface OutputConfigOrBuilder com.google.cloud.asset.v1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); /** - * - * *
-   * Destination on {{bigquery_name}}. The output table stores the fields in
-   * asset Protobuf as columns in {{bigquery_name}}.
+   * 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_name}}. The output table stores the fields in
-   * asset Protobuf as columns in {{bigquery_name}}.
+   * 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_name}}. The output table stores the fields in
-   * asset Protobuf as columns in {{bigquery_name}}.
+   * Destination on BigQuery. The output table stores the fields in asset
+   * Protobuf as columns in BigQuery.
    * 
* * .google.cloud.asset.v1.BigQueryDestination bigquery_destination = 2; 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 65% 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 ec451f228b1e..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,81 +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; } - - 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; } @@ -91,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 {{storage_name}}.
+   * Export result on Cloud Storage.
    * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -126,28 +100,23 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** - * - * *
-   * Export result on {{storage_name}}.
+   * 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 {{storage_name}}.
+   * Export result on Cloud Storage.
    * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; @@ -155,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; @@ -173,7 +141,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 (resultCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.GcsOutputResult) result_); } @@ -187,9 +156,8 @@ 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; @@ -199,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); @@ -209,7 +177,8 @@ 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: @@ -238,136 +207,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +343,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 @@ -401,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_; @@ -419,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; @@ -461,15 +422,13 @@ 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(); @@ -497,19 +456,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) { @@ -519,12 +478,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() { @@ -534,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 {{storage_name}}.
+     * Export result on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return Whether the gcsResult field is set. */ @java.lang.Override @@ -555,14 +509,11 @@ public boolean hasGcsResult() { return resultCase_ == 1; } /** - * - * *
-     * Export result on {{storage_name}}.
+     * Export result on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; - * * @return The gcsResult. */ @java.lang.Override @@ -580,10 +531,8 @@ public com.google.cloud.asset.v1.GcsOutputResult getGcsResult() { } } /** - * - * *
-     * Export result on {{storage_name}}.
+     * Export result on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; @@ -602,15 +551,14 @@ public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { return this; } /** - * - * *
-     * Export result on {{storage_name}}.
+     * 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(); @@ -621,23 +569,18 @@ public Builder setGcsResult(com.google.cloud.asset.v1.GcsOutputResult.Builder bu return this; } /** - * - * *
-     * Export result on {{storage_name}}.
+     * Export result on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; */ 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; } @@ -653,10 +596,8 @@ public Builder mergeGcsResult(com.google.cloud.asset.v1.GcsOutputResult value) { return this; } /** - * - * *
-     * Export result on {{storage_name}}.
+     * Export result on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; @@ -678,10 +619,8 @@ public Builder clearGcsResult() { return this; } /** - * - * *
-     * Export result on {{storage_name}}.
+     * Export result on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; @@ -690,10 +629,8 @@ public com.google.cloud.asset.v1.GcsOutputResult.Builder getGcsResultBuilder() { return getGcsResultFieldBuilder().getBuilder(); } /** - * - * *
-     * Export result on {{storage_name}}.
+     * Export result on Cloud Storage.
      * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; @@ -710,41 +647,33 @@ public com.google.cloud.asset.v1.GcsOutputResultOrBuilder getGcsResultOrBuilder( } } /** - * - * *
-     * Export result on {{storage_name}}.
+     * Export result on Cloud Storage.
      * 
* * .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); } @@ -754,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(); } @@ -768,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -803,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 53% 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 73187bc3ca0a..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,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/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 {{storage_name}}.
+   * 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 {{storage_name}}.
+   * 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 {{storage_name}}.
+   * Export result on Cloud Storage.
    * 
* * .google.cloud.asset.v1.GcsOutputResult gcs_result = 1; 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 12fef8cda895..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,89 +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; /** - * - * *
- * Specifications of {{bigquery_name}} partitioned table as export destination.
+ * 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_name}} partitioned table(s). Note that, if the
-   * partition key is a timestamp column, the actual partition is based on its
-   * date value (expressed in UTC. see details in
+   * assets to BigQuery partitioned table(s). Note that, if the partition key is
+   * a timestamp column, the actual partition is based on its date value
+   * (expressed in UTC. see details in
    * https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables).
    * 
* * 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.
      * 
@@ -92,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,
@@ -106,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
@@ -122,8 +96,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified partition key. If used, it means using non-partitioned table.
      * 
@@ -132,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,
@@ -146,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
@@ -159,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(
@@ -183,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;
@@ -245,43 +214,31 @@ private PartitionKey(int value) {
   public static final int PARTITION_KEY_FIELD_NUMBER = 1;
   private int partitionKey_;
   /**
-   *
-   *
    * 
-   * The partition key for {{bigquery_name}} partitioned table.
+   * 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_name}} partitioned table.
+   * 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; @@ -293,10 +250,9 @@ 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); @@ -308,10 +264,9 @@ 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; @@ -321,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); @@ -347,136 +302,130 @@ 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_name}} partitioned table as export destination.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -486,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 @@ -507,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; @@ -518,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; @@ -588,19 +535,17 @@ 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) { @@ -613,67 +558,51 @@ public Builder mergeFrom( private int partitionKey_ = 0; /** - * - * *
-     * The partition key for {{bigquery_name}} partitioned table.
+     * 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_name}} partitioned table.
+     * 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_name}} partitioned table.
+     * 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_name}} partitioned table.
+     * 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. */ @@ -681,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_name}} partitioned table.
+     * 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); } @@ -715,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(); } @@ -729,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -764,4 +690,6 @@ 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/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java new file mode 100644 index 000000000000..0dd5bf8780fd --- /dev/null +++ b/owl-bot-staging/java-asset/v1/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/PartitionSpecOrBuilder.java @@ -0,0 +1,28 @@ +// 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 + // @@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 65% 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 97aa01169529..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,84 +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; } - - 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 @@ -87,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 { @@ -119,7 +97,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +108,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(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -155,15 +133,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; } @@ -182,136 +160,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,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 @@ -342,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; @@ -353,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; @@ -424,19 +394,17 @@ 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) { @@ -449,21 +417,19 @@ 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; @@ -472,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 { @@ -495,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); } @@ -569,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(); } @@ -583,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -618,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 60% 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 9ca94dada050..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,191 +1,152 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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_name}} 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_name}} 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_name}} 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_name}} 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:
-     * * WRITE_TRUNCATE: If the table or partition already exists,
-     * {{bigquery_name}} overwrites the entire table or all the partitions data.
-     * * WRITE_APPEND: If the table or partition already exists,
-     * {{bigquery_name}} appends the data to the table or the latest partition.
+     * * 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
+     * appends the data to the table or the latest partition.
      * * 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:
-     * * WRITE_TRUNCATE: If the table or partition already exists,
-     * {{bigquery_name}} overwrites the entire table or all the partitions data.
-     * * WRITE_APPEND: If the table or partition already exists,
-     * {{bigquery_name}} appends the data to the table or the latest partition.
+     * * 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
+     * appends the data to the table or the latest partition.
      * * 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_name}} destination.
+   * 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_ = ""; @@ -194,42 +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; } - - 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_name}} 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 @@ -238,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_name}} 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 { @@ -272,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_name}} 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 @@ -290,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_name}} 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 { @@ -325,22 +277,19 @@ 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:
-     * * WRITE_TRUNCATE: If the table or partition already exists,
-     * {{bigquery_name}} overwrites the entire table or all the partitions data.
-     * * WRITE_APPEND: If the table or partition already exists,
-     * {{bigquery_name}} appends the data to the table or the latest partition.
+     * * 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
+     * appends the data to the table or the latest partition.
      * * 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 @@ -349,37 +298,37 @@ 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:
-     * * WRITE_TRUNCATE: If the table or partition already exists,
-     * {{bigquery_name}} overwrites the entire table or all the partitions data.
-     * * WRITE_APPEND: If the table or partition already exists,
-     * {{bigquery_name}} appends the data to the table or the latest partition.
+     * * 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
+     * appends the data to the table or the latest partition.
      * * 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 { @@ -388,7 +337,6 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -400,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_); } @@ -436,17 +385,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.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; } @@ -470,95 +421,87 @@ 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 @@ -568,43 +511,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * {{bigquery_name}} destination.
+     * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -618,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); } @@ -642,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_; @@ -655,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(); @@ -741,31 +668,27 @@ 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) { @@ -778,21 +701,19 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** - * - * *
-       * Required. The {{bigquery_name}} 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; @@ -801,22 +722,21 @@ public java.lang.String getDataset() { } } /** - * - * *
-       * Required. The {{bigquery_name}} 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 { @@ -824,64 +744,57 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
-       * Required. The {{bigquery_name}} 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_name}} 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_name}} 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; @@ -889,22 +802,19 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object table_ = ""; /** - * - * *
-       * Required. The {{bigquery_name}} 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; @@ -913,23 +823,21 @@ public java.lang.String getTable() { } } /** - * - * *
-       * Required. The {{bigquery_name}} 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 { @@ -937,67 +845,57 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
-       * Required. The {{bigquery_name}} 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_name}} 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_name}} 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; @@ -1005,28 +903,26 @@ 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:
-       * * WRITE_TRUNCATE: If the table or partition already exists,
-       * {{bigquery_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * * 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
+       * appends the data to the table or the latest partition.
        * * 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; @@ -1035,29 +931,28 @@ public java.lang.String getWriteDisposition() { } } /** - * - * *
        * 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_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * * 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
+       * appends the data to the table or the latest partition.
        * * 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 { @@ -1065,90 +960,82 @@ public com.google.protobuf.ByteString getWriteDispositionBytes() { } } /** - * - * *
        * 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_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * * 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
+       * appends the data to the table or the latest partition.
        * * 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:
-       * * WRITE_TRUNCATE: If the table or partition already exists,
-       * {{bigquery_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * * 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
+       * appends the data to the table or the latest partition.
        * * 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:
-       * * WRITE_TRUNCATE: If the table or partition already exists,
-       * {{bigquery_name}} overwrites the entire table or all the partitions data.
-       * * WRITE_APPEND: If the table or partition already exists,
-       * {{bigquery_name}} appends the data to the table or the latest partition.
+       * * 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
+       * appends the data to the table or the latest partition.
        * * 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) { @@ -1161,45 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1211,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_name}} destination where the query results will be saved.
+   * 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 @@ -1238,44 +1115,30 @@ public boolean hasBigqueryDestination() { return bigqueryDestination_ != null; } /** - * - * *
-   * {{bigquery_name}} destination where the query results will be saved.
+   * 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_name}} destination where the query results will be saved.
+   * 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; @@ -1287,7 +1150,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 (bigqueryDestination_ != null) { output.writeMessage(1, getBigqueryDestination()); } @@ -1301,7 +1165,8 @@ 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; @@ -1311,17 +1176,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; @@ -1344,135 +1209,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1486,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 @@ -1507,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 { @@ -1522,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; @@ -1562,8 +1419,7 @@ 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()); } @@ -1593,20 +1449,19 @@ 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) { @@ -1617,66 +1472,43 @@ 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_name}} destination where the query results will be saved.
+     * 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_name}} destination where the query results will be saved.
+     * 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_name}} destination where the query results will be saved.
+     * 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(); @@ -1690,19 +1522,14 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
-     * {{bigquery_name}} destination where the query results will be saved.
+     * 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(); @@ -1713,25 +1540,17 @@ public Builder setBigqueryDestination( return this; } /** - * - * *
-     * {{bigquery_name}} destination where the query results will be saved.
+     * 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; } @@ -1743,15 +1562,11 @@ public Builder mergeBigqueryDestination( return this; } /** - * - * *
-     * {{bigquery_name}} destination where the query results will be saved.
+     * 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) { @@ -1765,74 +1580,55 @@ public Builder clearBigqueryDestination() { return this; } /** - * - * *
-     * {{bigquery_name}} destination where the query results will be saved.
+     * 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_name}} destination where the query results will be saved.
+     * 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_name}} destination where the query results will be saved.
+     * 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); } @@ -1842,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(); } @@ -1856,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1891,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 da18d93f7c70..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,42 +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; } - - 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; } @@ -95,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; } @@ -142,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
@@ -175,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 @@ -187,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
@@ -204,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 { @@ -225,32 +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_name}}
-   * Standard
+   * 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_name}}
-   * Standard
+   * 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() { @@ -261,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; @@ -270,26 +225,24 @@ public java.lang.String getStatement() { } } /** - * - * *
-   * Optional. A SQL statement that's compatible with [{{bigquery_name}}
-   * Standard
+   * 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; } @@ -301,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() { @@ -335,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; @@ -344,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; } @@ -375,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 @@ -397,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 @@ -414,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 { @@ -448,15 +389,12 @@ 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.
-   * Like {{bigquery_name}} [jobs.query
+   * 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
    * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -465,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 @@ -473,15 +410,12 @@ 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.
-   * Like {{bigquery_name}} [jobs.query
+   * 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
    * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -490,7 +424,6 @@ public boolean hasTimeout() {
    * 
* * .google.protobuf.Duration timeout = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The timeout. */ @java.lang.Override @@ -498,15 +431,12 @@ 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.
-   * Like {{bigquery_name}} [jobs.query
+   * 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
    * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -523,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 @@ -542,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 @@ -603,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(); } @@ -644,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
@@ -656,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 @@ -667,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
@@ -679,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
@@ -704,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() { @@ -714,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; @@ -726,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_); } @@ -773,26 +659,27 @@ 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; @@ -802,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: @@ -835,10 +728,12 @@ 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: @@ -897,136 +792,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1062,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 @@ -1083,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_; @@ -1128,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; @@ -1187,40 +1074,34 @@ 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(); @@ -1248,69 +1129,67 @@ 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) { @@ -1320,12 +1199,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() { @@ -1337,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() { @@ -1349,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
@@ -1361,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; @@ -1379,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
@@ -1389,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 { @@ -1407,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
@@ -1417,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
@@ -1444,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
@@ -1467,35 +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_name}}
-     * Standard
+     * 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 @@ -1503,16 +1360,12 @@ public boolean hasStatement() { return queryCase_ == 2; } /** - * - * *
-     * Optional. A SQL statement that's compatible with [{{bigquery_name}}
-     * Standard
+     * 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 @@ -1522,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; @@ -1533,27 +1387,25 @@ public java.lang.String getStatement() { } } /** - * - * *
-     * Optional. A SQL statement that's compatible with [{{bigquery_name}}
-     * Standard
+     * 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; } @@ -1563,39 +1415,32 @@ public com.google.protobuf.ByteString getStatementBytes() { } } /** - * - * *
-     * Optional. A SQL statement that's compatible with [{{bigquery_name}}
-     * Standard
+     * 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_name}}
-     * Standard
+     * 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() { @@ -1607,24 +1452,21 @@ public Builder clearStatement() { return this; } /** - * - * *
-     * Optional. A SQL statement that's compatible with [{{bigquery_name}}
-     * Standard
+     * 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(); @@ -1632,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 @@ -1648,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 @@ -1666,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; @@ -1677,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; } @@ -1706,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() { @@ -1748,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 @@ -1792,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; @@ -1837,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; @@ -1860,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 { @@ -1883,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; @@ -1948,20 +1758,14 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -1970,22 +1774,18 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -1994,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() { @@ -2005,15 +1804,12 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -2037,15 +1833,12 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -2055,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();
@@ -2066,15 +1860,12 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -2088,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;
         }
@@ -2100,15 +1891,12 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -2130,15 +1918,12 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -2149,20 +1934,17 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -2176,19 +1958,17 @@ 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.
-     * Like {{bigquery_name}} [jobs.query
+     * 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
      * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -2199,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 @@ -2240,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 @@ -2269,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) { @@ -2295,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(); @@ -2318,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; } @@ -2353,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) { @@ -2382,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() { @@ -2422,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 @@ -2480,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 @@ -2507,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) { @@ -2531,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(); @@ -2552,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; } @@ -2584,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) { @@ -2611,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() { @@ -2647,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
@@ -2699,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
@@ -2721,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
@@ -2749,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) { @@ -2767,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
@@ -2779,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) { @@ -2795,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
@@ -2807,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; } @@ -2829,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
@@ -2841,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) { @@ -2857,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
@@ -2869,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
@@ -2891,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
@@ -2917,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); } @@ -2949,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(); } @@ -2963,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2998,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 65% 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 501c080af56b..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,151 +29,119 @@ 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_name}}
-   * Standard
+   * 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_name}}
-   * Standard
+   * 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_name}}
-   * Standard
+   * 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.
-   * Like {{bigquery_name}} [jobs.query
+   * 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
    * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -205,20 +150,16 @@ 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.
-   * Like {{bigquery_name}} [jobs.query
+   * 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
    * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -227,20 +168,16 @@ 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.
-   * Like {{bigquery_name}} [jobs.query
+   * 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
    * returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -253,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
@@ -353,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
@@ -373,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
@@ -393,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 73% 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 1bd4becddb9c..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,85 +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; } - - 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; } @@ -95,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 @@ -136,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 { @@ -169,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
@@ -180,7 +149,6 @@ public com.google.protobuf.ByteString getJobReferenceBytes() {
    * 
* * bool done = 2; - * * @return The done. */ @java.lang.Override @@ -190,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 @@ -205,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.
    * 
@@ -234,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 @@ -256,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.
    * 
@@ -285,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 @@ -308,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.
@@ -339,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;
@@ -357,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_);
     }
@@ -386,22 +330,20 @@ 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;
@@ -411,26 +353,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.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:
@@ -449,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;
@@ -471,136 +418,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -623,9 +564,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 @@ -644,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) { @@ -678,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; @@ -727,25 +666,21 @@ 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(); @@ -773,43 +708,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) { @@ -819,12 +754,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() { @@ -834,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; @@ -858,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 { @@ -880,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
@@ -953,7 +877,6 @@ public Builder setJobReferenceBytes(com.google.protobuf.ByteString value) {
      * 
* * bool done = 2; - * * @return The done. */ @java.lang.Override @@ -961,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
@@ -972,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
@@ -994,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 @@ -1023,14 +936,11 @@ public boolean hasError() { return responseCase_ == 3; } /** - * - * *
      * Error status.
      * 
* * .google.rpc.Status error = 3; - * * @return The error. */ @java.lang.Override @@ -1048,8 +958,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Error status.
      * 
@@ -1070,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(); @@ -1089,8 +996,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Error status.
      * 
@@ -1099,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; } @@ -1119,8 +1023,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error status.
      * 
@@ -1144,8 +1046,6 @@ public Builder clearError() { return this; } /** - * - * *
      * Error status.
      * 
@@ -1156,8 +1056,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Error status.
      * 
@@ -1176,8 +1074,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } } /** - * - * *
      * Error status.
      * 
@@ -1185,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 @@ -1226,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 @@ -1251,8 +1136,6 @@ public com.google.cloud.asset.v1.QueryResult getQueryResult() { } } /** - * - * *
      * Result of the query.
      * 
@@ -1273,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(); @@ -1292,8 +1174,6 @@ public Builder setQueryResult(com.google.cloud.asset.v1.QueryResult.Builder buil return this; } /** - * - * *
      * Result of the query.
      * 
@@ -1302,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; } @@ -1324,8 +1201,6 @@ public Builder mergeQueryResult(com.google.cloud.asset.v1.QueryResult value) { return this; } /** - * - * *
      * Result of the query.
      * 
@@ -1349,8 +1224,6 @@ public Builder clearQueryResult() { return this; } /** - * - * *
      * Result of the query.
      * 
@@ -1361,8 +1234,6 @@ public com.google.cloud.asset.v1.QueryResult.Builder getQueryResultBuilder() { return getQueryResultFieldBuilder().getBuilder(); } /** - * - * *
      * Result of the query.
      * 
@@ -1381,8 +1252,6 @@ public com.google.cloud.asset.v1.QueryResultOrBuilder getQueryResultOrBuilder() } } /** - * - * *
      * Result of the query.
      * 
@@ -1390,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 @@ -1436,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 @@ -1462,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.
@@ -1485,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.
@@ -1506,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.
@@ -1517,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;
         }
@@ -1540,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.
@@ -1566,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.
@@ -1579,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.
@@ -1600,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.
@@ -1610,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);
     }
 
@@ -1645,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();
   }
@@ -1659,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1694,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 70%
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 5954e794e2ce..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,45 +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;
 
 /**
- *
- *
  * 
  * Execution results of the query.
- * The result is formatted as rows represented by {{bigquery_name}} compatible
- * [schema]. When pagination is necessary, it will contains the page token to
- * retrieve the results of following pages.
+ * The result is formatted as rows represented by BigQuery compatible [schema].
+ * When pagination is necessary, it will contains the page token to retrieve
+ * the results of following pages.
  * 
* * 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,35 +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; } - - 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`.
    * 
@@ -87,8 +66,6 @@ public java.util.List getRowsList() { return rows_; } /** - * - * *
    * Each row hold a query result in the format of `Struct`.
    * 
@@ -96,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`.
    * 
@@ -113,8 +89,6 @@ public int getRowsCount() { return rows_.size(); } /** - * - * *
    * Each row hold a query result in the format of `Struct`.
    * 
@@ -126,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`.
    * 
@@ -135,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 @@ -157,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 @@ -172,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].
    * 
@@ -188,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 @@ -204,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 { @@ -237,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 @@ -253,7 +212,6 @@ public long getTotalRows() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,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)); } @@ -288,16 +247,19 @@ 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; @@ -307,20 +269,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.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; } @@ -343,144 +309,140 @@ 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_name}} compatible
-   * [schema]. When pagination is necessary, it will contains the page token to
-   * retrieve the results of following pages.
+   * The result is formatted as rows represented by BigQuery compatible [schema].
+   * When pagination is necessary, it will contains the page token to retrieve
+   * the results of following pages.
    * 
* * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -505,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 @@ -526,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)) { @@ -553,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; @@ -612,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_); } @@ -657,43 +616,42 @@ 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) { @@ -703,27 +661,21 @@ 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`.
      * 
@@ -738,8 +690,6 @@ public java.util.List getRowsList() { } } /** - * - * *
      * Each row hold a query result in the format of `Struct`.
      * 
@@ -754,8 +704,6 @@ public int getRowsCount() { } } /** - * - * *
      * Each row hold a query result in the format of `Struct`.
      * 
@@ -770,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(); @@ -792,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()); @@ -811,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`.
      * 
@@ -833,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(); @@ -855,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()); @@ -874,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()); @@ -893,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); @@ -912,8 +853,6 @@ public Builder addAllRows(java.lang.Iterable * Each row hold a query result in the format of `Struct`. *
@@ -931,8 +870,6 @@ public Builder clearRows() { return this; } /** - * - * *
      * Each row hold a query result in the format of `Struct`.
      * 
@@ -950,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 { @@ -994,8 +927,6 @@ public java.util.List getRowsOrBu } } /** - * - * *
      * Each row hold a query result in the format of `Struct`.
      * 
@@ -1003,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_; @@ -1050,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].
      * 
@@ -1111,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(); @@ -1130,8 +1043,6 @@ public Builder setSchema(com.google.cloud.asset.v1.TableSchema.Builder builderFo return this; } /** - * - * *
      * Describes the format of the [rows].
      * 
@@ -1142,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; } @@ -1156,8 +1065,6 @@ public Builder mergeSchema(com.google.cloud.asset.v1.TableSchema value) { return this; } /** - * - * *
      * Describes the format of the [rows].
      * 
@@ -1176,8 +1083,6 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Describes the format of the [rows].
      * 
@@ -1185,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].
      * 
@@ -1202,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].
      * 
@@ -1217,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_; @@ -1235,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; @@ -1257,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 { @@ -1279,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 @@ -1356,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); } @@ -1402,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(); } @@ -1416,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1451,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 257b1bd5727c..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,50 +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; /** - * - * *
- * An asset identifier in {{gcp_name}} which contains its name, type and
- * ancestors. An asset can be any resource in the {{gcp_name}}
- * [resource
+ * An asset identifier in Google Cloud which contains its name, type and
+ * ancestors. An asset can be any resource in the Google Cloud [resource
  * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
- * a resource outside the {{gcp_name}} resource hierarchy (such as
- * {{container_name}} clusters and objects), or a policy (e.g.
- * {{iam_name_short}} policy). See [Supported asset
+ * a resource outside the Google Cloud resource hierarchy (such as Google
+ * Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
+ * See [Supported asset
  * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
  * for more information.
  * 
* * 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_ = ""; @@ -54,35 +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; } - - 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`
@@ -92,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 @@ -101,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`
@@ -119,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 { @@ -138,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
@@ -148,7 +123,6 @@ public com.google.protobuf.ByteString getAssetBytes() {
    * 
* * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -157,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
@@ -174,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 { @@ -193,10 +167,8 @@ 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 {{gcp_name}} [resource
+   * The ancestors of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root.
@@ -204,17 +176,15 @@ 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 {{gcp_name}} [resource
+   * The ancestors of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root.
@@ -222,17 +192,14 @@ 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 {{gcp_name}} [resource
+   * The ancestors of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root.
@@ -240,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. */ @@ -248,10 +214,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
-   * The ancestors of an asset in {{gcp_name}} [resource
+   * The ancestors of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root.
@@ -259,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 @@ -287,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 { @@ -319,7 +280,6 @@ public com.google.protobuf.ByteString getRelationshipTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,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_); } @@ -378,17 +339,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.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; } @@ -415,144 +380,137 @@ 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 {{gcp_name}} which contains its name, type and
-   * ancestors. An asset can be any resource in the {{gcp_name}}
-   * [resource
+   * An asset identifier in Google Cloud which contains its name, type and
+   * ancestors. An asset can be any resource in the Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
-   * a resource outside the {{gcp_name}} resource hierarchy (such as
-   * {{container_name}} clusters and objects), or a policy (e.g.
-   * {{iam_name_short}} policy). See [Supported asset
+   * a resource outside the Google Cloud resource hierarchy (such as Google
+   * Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
+   * See [Supported asset
    * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
    * for more information.
    * 
* * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -568,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 @@ -589,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_; @@ -608,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; @@ -697,38 +653,33 @@ 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) { @@ -738,13 +689,10 @@ 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`
@@ -754,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; @@ -769,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`
@@ -780,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 { @@ -795,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`
@@ -806,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`
@@ -831,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`
@@ -852,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; @@ -869,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
@@ -879,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; @@ -894,8 +832,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
      * The type of the asset. Example: `compute.googleapis.com/Disk`
      * See [Supported asset
@@ -904,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 { @@ -919,8 +856,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
      * The type of the asset. Example: `compute.googleapis.com/Disk`
      * See [Supported asset
@@ -929,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
@@ -953,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
@@ -973,35 +903,31 @@ 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 {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1009,17 +935,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 {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1027,17 +951,14 @@ 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 {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1045,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. */ @@ -1053,10 +973,8 @@ public java.lang.String getAncestors(int index) { return ancestors_.get(index); } /** - * - * *
-     * The ancestors of an asset in {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1064,18 +982,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 {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1083,25 +999,23 @@ 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 {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1109,24 +1023,22 @@ 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 {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1134,21 +1046,20 @@ 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 {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1156,7 +1067,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
      * 
* * repeated string ancestors = 3; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1166,10 +1076,8 @@ public Builder clearAncestors() { return this; } /** - * - * *
-     * The ancestors of an asset in {{gcp_name}} [resource
+     * The ancestors of an asset in Google Cloud [resource
      * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
      * represented as a list of relative resource names. An ancestry path starts
      * with the closest ancestor in the hierarchy and ends at root.
@@ -1177,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(); @@ -1194,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; @@ -1217,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 { @@ -1240,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); } @@ -1314,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(); } @@ -1328,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1363,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 76% 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 45d727af0b9f..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,16 +56,14 @@ 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 {{gcp_name}} [resource
+   * The ancestors of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root.
@@ -99,15 +71,13 @@ 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 {{gcp_name}} [resource
+   * The ancestors of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root.
@@ -115,15 +85,12 @@ public interface RelatedAssetOrBuilder
    * 
* * repeated string ancestors = 3; - * * @return The count of ancestors. */ int getAncestorsCount(); /** - * - * *
-   * The ancestors of an asset in {{gcp_name}} [resource
+   * The ancestors of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root.
@@ -131,16 +98,13 @@ 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 {{gcp_name}} [resource
+   * The ancestors of an asset in Google Cloud [resource
    * hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
    * represented as a list of relative resource names. An ancestry path starts
    * with the closest ancestor in the hierarchy and ends at root.
@@ -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 71% 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 0650cd7d16ce..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,58 +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;
   }
-
-  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 @@ -89,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.
    * 
@@ -115,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.
    * 
@@ -136,8 +103,6 @@ public java.util.List getAssetsList() { return assets_; } /** - * - * *
    * The peer resources of the relationship.
    * 
@@ -145,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.
    * 
@@ -163,8 +126,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
    * The peer resources of the relationship.
    * 
@@ -176,8 +137,6 @@ public com.google.cloud.asset.v1.RelatedAsset getAssets(int index) { return assets_.get(index); } /** - * - * *
    * The peer resources of the relationship.
    * 
@@ -185,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; @@ -202,7 +161,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 (relationshipAttributes_ != null) { output.writeMessage(1, getRelationshipAttributes()); } @@ -219,11 +179,12 @@ 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; @@ -233,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); @@ -242,9 +203,11 @@ 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; } @@ -269,104 +232,97 @@ 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
@@ -376,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +379,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
@@ -443,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_;
@@ -468,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;
@@ -530,10 +485,9 @@ 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_);
           }
@@ -565,33 +519,32 @@ 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) {
@@ -601,60 +554,45 @@ 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(); @@ -668,8 +606,6 @@ public Builder setRelationshipAttributes( return this; } /** - * - * *
      * The detailed relationship attributes.
      * 
@@ -688,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; } @@ -715,8 +646,6 @@ public Builder mergeRelationshipAttributes( return this; } /** - * - * *
      * The detailed relationship attributes.
      * 
@@ -735,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.
      * 
@@ -778,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.
      * 
@@ -827,8 +738,6 @@ public java.util.List getAssetsList() { } } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -843,8 +752,6 @@ public int getAssetsCount() { } } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -859,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(); @@ -881,8 +787,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1.RelatedAsset value return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -901,8 +805,6 @@ public Builder setAssets( return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -923,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(); @@ -945,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()); @@ -964,8 +864,6 @@ public Builder addAssets(com.google.cloud.asset.v1.RelatedAsset.Builder builderF return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -984,8 +882,6 @@ public Builder addAssets( return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -996,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); @@ -1004,8 +901,6 @@ public Builder addAllAssets( return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -1023,8 +918,6 @@ public Builder clearAssets() { return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -1042,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 { @@ -1087,8 +975,6 @@ public com.google.cloud.asset.v1.RelatedAssetOrBuilder getAssetsOrBuilder(int in } } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -1096,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); } @@ -1153,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(); } @@ -1167,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1202,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 68% 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 80d9fd5e6e8d..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,41 +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; } - - 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 @@ -87,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 { @@ -120,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 @@ -137,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 { @@ -169,7 +144,6 @@ public com.google.protobuf.ByteString getFullResourceNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +155,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(assetType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assetType_); } @@ -211,16 +186,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.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; } @@ -241,136 +217,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -382,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 @@ -403,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(); @@ -415,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; @@ -490,25 +458,22 @@ 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) { @@ -521,20 +486,18 @@ 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; @@ -543,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 { @@ -565,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; @@ -627,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; @@ -650,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 { @@ -673,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); } @@ -747,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(); } @@ -761,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -796,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 72% 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 a6c6df76791a..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,77 +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; } - - 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.
    * 
@@ -83,8 +62,6 @@ public java.util.List getRelatedResou return relatedResources_; } /** - * - * *
    * The detailed related resources of the primary resource.
    * 
@@ -92,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.
    * 
@@ -110,8 +85,6 @@ public int getRelatedResourcesCount() { return relatedResources_.size(); } /** - * - * *
    * The detailed related resources of the primary resource.
    * 
@@ -123,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.
    * 
@@ -138,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; @@ -150,7 +120,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 < relatedResources_.size(); i++) { output.writeMessage(1, relatedResources_.get(i)); } @@ -164,7 +135,8 @@ 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; @@ -174,15 +146,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; } @@ -203,136 +175,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +313,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 @@ -368,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)) { @@ -388,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; @@ -447,10 +411,9 @@ 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_); } @@ -482,26 +445,25 @@ 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) { @@ -511,29 +473,21 @@ 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.
      * 
@@ -548,8 +502,6 @@ public java.util.List getRelatedResou } } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -564,8 +516,6 @@ public int getRelatedResourcesCount() { } } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -580,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(); @@ -602,8 +551,6 @@ public Builder setRelatedResources(int index, com.google.cloud.asset.v1.RelatedR return this; } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -622,8 +569,6 @@ public Builder setRelatedResources( return this; } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -644,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(); @@ -666,8 +610,6 @@ public Builder addRelatedResources(int index, com.google.cloud.asset.v1.RelatedR return this; } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -686,8 +628,6 @@ public Builder addRelatedResources( return this; } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -706,8 +646,6 @@ public Builder addRelatedResources( return this; } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -718,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); @@ -726,8 +665,6 @@ public Builder addAllRelatedResources( return this; } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -745,8 +682,6 @@ public Builder clearRelatedResources() { return this; } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -764,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.
      * 
@@ -787,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 { @@ -810,8 +739,6 @@ public com.google.cloud.asset.v1.RelatedResourceOrBuilder getRelatedResourcesOrB } } /** - * - * *
      * The detailed related resources of the primary resource.
      * 
@@ -819,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(), @@ -868,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); } @@ -880,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(); } @@ -894,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -929,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 70% 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 7076d6b7c4d1..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,42 +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;
   }
-
-  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 @@ -95,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 { @@ -129,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 @@ -145,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 { @@ -178,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 @@ -194,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 { @@ -227,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 @@ -243,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 { @@ -274,7 +242,6 @@ public com.google.protobuf.ByteString getActionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,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_); } @@ -328,18 +296,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.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; } @@ -364,104 +335,97 @@ 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
@@ -472,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -513,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
@@ -534,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_;
@@ -548,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;
@@ -588,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();
@@ -632,37 +594,32 @@ 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) {
@@ -675,21 +632,19 @@ 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; @@ -698,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 { @@ -721,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; @@ -786,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; @@ -808,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 { @@ -830,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; @@ -892,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; @@ -914,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 { @@ -936,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; @@ -998,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; @@ -1020,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 { @@ -1042,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); } @@ -1113,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(); } @@ -1127,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1162,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 72% 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 2bf9843f0131..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 {{gcp_name}} resource.
+ * 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,41 +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; } - - 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 @@ -91,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 { @@ -124,18 +102,15 @@ 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:
    * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
    * This value is unspecified for resources that do not have an API based on a
-   * discovery document, such as {{bigtable_name}}.
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -144,33 +119,33 @@ 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:
    * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
    * This value is unspecified for resources that do not have an API based on a
-   * discovery document, such as {{bigtable_name}}.
+   * discovery document, such as Cloud Bigtable.
    * 
* * 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 { @@ -181,17 +156,14 @@ 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`
    * This value is unspecified for resources that do not have an API based on a
-   * discovery document, such as {{bigtable_name}}.
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_name = 3; - * * @return The discoveryName. */ @java.lang.Override @@ -200,32 +172,32 @@ 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`
    * This value is unspecified for resources that do not have an API based on a
-   * discovery document, such as {{bigtable_name}}.
+   * discovery document, such as Cloud Bigtable.
    * 
* * 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 { @@ -236,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:
@@ -246,7 +216,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
    * 
* * string resource_url = 4; - * * @return The resourceUrl. */ @java.lang.Override @@ -255,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:
@@ -272,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 { @@ -291,15 +260,13 @@ 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
    * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    * for more information.
-   * For {{gcp_name}} assets, this value is the parent resource defined in the
-   * [{{iam_name_short}} policy
+   * For Google Cloud assets, this value is the parent resource defined in the
+   * [Cloud IAM policy
    * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
    * Example:
    * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -307,7 +274,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
    * 
* * string parent = 5; - * * @return The parent. */ @java.lang.Override @@ -316,22 +282,21 @@ 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
    * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    * for more information.
-   * For {{gcp_name}} assets, this value is the parent resource defined in the
-   * [{{iam_name_short}} policy
+   * For Google Cloud assets, this value is the parent resource defined in the
+   * [Cloud IAM policy
    * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
    * Example:
    * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -339,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 { @@ -358,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 @@ -374,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 @@ -390,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.
@@ -407,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 {{gcp_name}}, such as its zone and region.
+   * 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 @@ -424,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 {{gcp_name}}, such as its zone and region.
+   * 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 { @@ -456,7 +411,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -468,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_); } @@ -515,7 +470,8 @@ 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_); @@ -528,23 +484,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.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; } @@ -577,135 +540,130 @@ 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 {{gcp_name}} resource.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -731,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 @@ -772,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; @@ -866,55 +823,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 - 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) { @@ -927,20 +878,18 @@ 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; @@ -949,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 { @@ -971,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; @@ -1033,24 +974,22 @@ 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:
      * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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; @@ -1059,25 +998,24 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** - * - * *
      * The URL of the discovery document containing the resource's JSON schema.
      * Example:
      * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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 { @@ -1085,73 +1023,66 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { } } /** - * - * *
      * The URL of the discovery document containing the resource's JSON schema.
      * Example:
      * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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:
      * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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:
      * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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; @@ -1159,23 +1090,21 @@ public Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value private java.lang.Object discoveryName_ = ""; /** - * - * *
      * The JSON schema name listed in the discovery document. Example:
      * `Project`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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; @@ -1184,24 +1113,23 @@ public java.lang.String getDiscoveryName() { } } /** - * - * *
      * The JSON schema name listed in the discovery document. Example:
      * `Project`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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 { @@ -1209,70 +1137,63 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { } } /** - * - * *
      * The JSON schema name listed in the discovery document. Example:
      * `Project`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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`
      * This value is unspecified for resources that do not have an API based on a
-     * discovery document, such as {{bigtable_name}}.
+     * discovery document, such as Cloud Bigtable.
      * 
* * 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; @@ -1280,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:
@@ -1290,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; @@ -1305,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:
@@ -1315,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 { @@ -1330,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:
@@ -1340,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:
@@ -1364,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:
@@ -1384,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; @@ -1401,15 +1312,13 @@ 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
      * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
-     * For {{gcp_name}} assets, this value is the parent resource defined in the
-     * [{{iam_name_short}} policy
+     * For Google Cloud assets, this value is the parent resource defined in the
+     * [Cloud IAM policy
      * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
      * Example:
      * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -1417,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; @@ -1432,15 +1341,13 @@ public java.lang.String getParent() { } } /** - * - * *
      * The full name of the immediate parent of this resource. See
      * [Resource
      * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
-     * For {{gcp_name}} assets, this value is the parent resource defined in the
-     * [{{iam_name_short}} policy
+     * For Google Cloud assets, this value is the parent resource defined in the
+     * [Cloud IAM policy
      * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
      * Example:
      * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -1448,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 { @@ -1463,15 +1371,13 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The full name of the immediate parent of this resource. See
      * [Resource
      * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
-     * For {{gcp_name}} assets, this value is the parent resource defined in the
-     * [{{iam_name_short}} policy
+     * For Google Cloud assets, this value is the parent resource defined in the
+     * [Cloud IAM policy
      * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
      * Example:
      * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -1479,29 +1385,27 @@ 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
      * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
-     * For {{gcp_name}} assets, this value is the parent resource defined in the
-     * [{{iam_name_short}} policy
+     * For Google Cloud assets, this value is the parent resource defined in the
+     * [Cloud IAM policy
      * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
      * Example:
      * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -1509,25 +1413,22 @@ 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
      * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
      * for more information.
-     * For {{gcp_name}} assets, this value is the parent resource defined in the
-     * [{{iam_name_short}} policy
+     * For Google Cloud assets, this value is the parent resource defined in the
+     * [Cloud IAM policy
      * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
      * Example:
      * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -1535,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; @@ -1552,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() { @@ -1591,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.
@@ -1614,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.
@@ -1623,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();
@@ -1634,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.
@@ -1646,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;
         }
@@ -1658,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.
@@ -1679,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.
@@ -1689,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.
@@ -1707,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.
@@ -1721,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_;
@@ -1738,21 +1617,19 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
 
     private java.lang.Object location_ = "";
     /**
-     *
-     *
      * 
-     * The location of the resource in {{gcp_name}}, such as its zone and region.
+     * 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; @@ -1761,22 +1638,21 @@ public java.lang.String getLocation() { } } /** - * - * *
-     * The location of the resource in {{gcp_name}}, such as its zone and region.
+     * 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 { @@ -1784,71 +1660,64 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
-     * The location of the resource in {{gcp_name}}, such as its zone and region.
+     * 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 {{gcp_name}}, such as its zone and region.
+     * 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 {{gcp_name}}, such as its zone and region.
+     * 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); } @@ -1858,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(); } @@ -1872,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1907,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 74% 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 96e88b3cf5b3..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,120 +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/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:
    * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
    * This value is unspecified for resources that do not have an API based on a
-   * discovery document, such as {{bigtable_name}}.
+   * discovery document, such as Cloud Bigtable.
    * 
* * 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:
    * `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
    * This value is unspecified for resources that do not have an API based on a
-   * discovery document, such as {{bigtable_name}}.
+   * discovery document, such as Cloud Bigtable.
    * 
* * 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`
    * This value is unspecified for resources that do not have an API based on a
-   * discovery document, such as {{bigtable_name}}.
+   * discovery document, such as Cloud Bigtable.
    * 
* * string discovery_name = 3; - * * @return The discoveryName. */ java.lang.String getDiscoveryName(); /** - * - * *
    * The JSON schema name listed in the discovery document. Example:
    * `Project`
    * This value is unspecified for resources that do not have an API based on a
-   * discovery document, such as {{bigtable_name}}.
+   * discovery document, such as Cloud Bigtable.
    * 
* * 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,21 +102,19 @@ 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
    * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    * for more information.
-   * For {{gcp_name}} assets, this value is the parent resource defined in the
-   * [{{iam_name_short}} policy
+   * For Google Cloud assets, this value is the parent resource defined in the
+   * [Cloud IAM policy
    * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
    * Example:
    * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -160,20 +122,17 @@ 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
    * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
    * for more information.
-   * For {{gcp_name}} assets, this value is the parent resource defined in the
-   * [{{iam_name_short}} policy
+   * For Google Cloud assets, this value is the parent resource defined in the
+   * [Cloud IAM policy
    * hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
    * Example:
    * `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -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 {{gcp_name}}, such as its zone and region.
+   * 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 {{gcp_name}}, such as its zone and region.
+   * 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 80% 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 3668145bfd33..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,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; /** - * - * *
  * A result of Resource Search, containing information of a cloud resource.
  * Next ID: 31
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -62,52 +44,50 @@ 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`.
-   * See [{{cai_name}} Resource Name
+   * See [Cloud Asset Inventory Resource Name
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `name`:
@@ -116,7 +96,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -125,19 +104,18 @@ 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`.
-   * See [{{cai_name}} Resource Name
+   * See [Cloud Asset Inventory Resource Name
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `name`:
@@ -146,15 +124,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 { @@ -165,8 +144,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 this resource. Example: `compute.googleapis.com/Disk`.
    * To search against the `asset_type`:
@@ -174,7 +151,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -183,15 +159,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 resource. Example: `compute.googleapis.com/Disk`.
    * To search against the `asset_type`:
@@ -199,15 +174,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 { @@ -218,8 +194,6 @@ 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
@@ -231,7 +205,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() {
    * 
* * string project = 3; - * * @return The project. */ @java.lang.Override @@ -240,15 +213,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 this resource belongs to, in the form of
    * projects/{PROJECT_NUMBER}. This field is available when the resource
@@ -260,15 +232,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 { @@ -279,8 +252,6 @@ 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
@@ -292,15 +263,13 @@ public com.google.protobuf.ByteString getProjectBytes() {
    * 
* * 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
@@ -312,15 +281,12 @@ public com.google.protobuf.ProtocolStringList getFoldersList() {
    * 
* * 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
@@ -332,7 +298,6 @@ public int getFoldersCount() {
    * 
* * repeated string folders = 17; - * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -340,8 +305,6 @@ 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
@@ -353,19 +316,17 @@ 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
@@ -377,7 +338,6 @@ public com.google.protobuf.ByteString getFoldersBytes(int index) {
    * 
* * string organization = 18; - * * @return The organization. */ @java.lang.Override @@ -386,15 +346,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 this resource belongs to, in the form of
    * organizations/{ORGANIZATION_NUMBER}. This field is available when the
@@ -406,15 +365,16 @@ 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 { @@ -425,8 +385,6 @@ 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.
@@ -436,7 +394,6 @@ public com.google.protobuf.ByteString getOrganizationBytes() {
    * 
* * string display_name = 4; - * * @return The displayName. */ @java.lang.Override @@ -445,15 +402,14 @@ 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.
@@ -463,15 +419,16 @@ 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 { @@ -482,8 +439,6 @@ 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
@@ -494,7 +449,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -503,15 +457,14 @@ 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
@@ -522,15 +475,16 @@ 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 { @@ -541,8 +495,6 @@ 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
@@ -553,7 +505,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string location = 6; - * * @return The location. */ @java.lang.Override @@ -562,15 +513,14 @@ 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
@@ -581,15 +531,16 @@ 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 { @@ -598,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_; } @@ -623,11 +575,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
-   * Labels associated with this resource. See
-   * [Labelling and grouping {{gcp_name}}
+   * 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.
@@ -641,25 +590,24 @@ 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_name}}
+   * 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.
@@ -674,15 +622,13 @@ 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_name}}
+   * 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.
@@ -697,19 +643,18 @@ 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_name}}
+   * 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.
@@ -724,11 +669,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();
     }
@@ -738,12 +684,9 @@ 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * 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.
@@ -753,19 +696,16 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * 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.
@@ -775,19 +715,15 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * 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.
@@ -797,7 +733,6 @@ public int getNetworkTagsCount() {
    * 
* * repeated string network_tags = 8; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -805,12 +740,9 @@ 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * 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.
@@ -820,29 +752,27 @@ 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 {{kms_name_short}}
+   * 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_name_short}} key information.
-   * This field is available only when the resource's Protobuf contains it and
-   * will only be populated for [these resource
+   * 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`:
@@ -851,37 +781,34 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(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=438 + * @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 {{kms_name_short}}
+   * 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_name_short}} key information.
-   * This field is available only when the resource's Protobuf contains it and
-   * will only be populated for [these resource
+   * 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`:
@@ -890,18 +817,18 @@ public java.lang.String getKmsKey() {
    * 
* * string kms_key = 10 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See - * google/cloud/asset/v1/assets.proto;l=438 + * @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 { @@ -912,10 +839,8 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { public static final int KMS_KEYS_FIELD_NUMBER = 28; private com.google.protobuf.LazyStringList kmsKeys_; /** - * - * *
-   * The {{kms_name_short}}
+   * 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)
@@ -927,17 +852,15 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
    * 
* * 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 {{kms_name_short}}
+   * 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)
@@ -949,17 +872,14 @@ public com.google.protobuf.ProtocolStringList getKmsKeysList() {
    * 
* * repeated string kms_keys = 28; - * * @return The count of kmsKeys. */ public int getKmsKeysCount() { return kmsKeys_.size(); } /** - * - * *
-   * The {{kms_name_short}}
+   * 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)
@@ -971,7 +891,6 @@ public int getKmsKeysCount() {
    * 
* * repeated string kms_keys = 28; - * * @param index The index of the element to return. * @return The kmsKeys at the given index. */ @@ -979,10 +898,8 @@ public java.lang.String getKmsKeys(int index) { return kmsKeys_.get(index); } /** - * - * *
-   * The {{kms_name_short}}
+   * 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)
@@ -994,19 +911,17 @@ 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
@@ -1020,7 +935,6 @@ public com.google.protobuf.ByteString getKmsKeysBytes(int index) {
    * 
* * .google.protobuf.Timestamp create_time = 11; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1028,8 +942,6 @@ 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
@@ -1043,7 +955,6 @@ public boolean hasCreateTime() {
    * 
* * .google.protobuf.Timestamp create_time = 11; - * * @return The createTime. */ @java.lang.Override @@ -1051,8 +962,6 @@ 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
@@ -1075,8 +984,6 @@ 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
@@ -1091,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 @@ -1099,8 +1005,6 @@ 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
@@ -1115,7 +1019,6 @@ public boolean hasUpdateTime() {
    * 
* * .google.protobuf.Timestamp update_time = 12; - * * @return The updateTime. */ @java.lang.Override @@ -1123,8 +1026,6 @@ 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
@@ -1148,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
@@ -1161,8 +1060,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
    * in [API
    * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-   * If the resource is a project provided by {{crm_name}}, its state will
-   * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+   * If the resource is a project provided by Cloud Resource Manager, its state
+   * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
    * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
    * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
    * To search against the `state`:
@@ -1171,7 +1070,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string state = 13; - * * @return The state. */ @java.lang.Override @@ -1180,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
@@ -1200,8 +1097,8 @@ public java.lang.String getState() {
    * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
    * in [API
    * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-   * If the resource is a project provided by {{crm_name}}, its state will
-   * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+   * If the resource is a project provided by Cloud Resource Manager, its state
+   * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
    * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
    * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
    * To search against the `state`:
@@ -1210,15 +1107,16 @@ 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 { @@ -1229,21 +1127,19 @@ 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,
    * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
    * metadata fields that are returned by the List or Get APIs provided by the
-   * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-   * [API references and supported searchable
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
    * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
    * to see which fields are included.
    * You can search values of these fields through free text search. However,
    * you should not consume the field programically as the field names and
-   * values may change as the {{gcp_name}} service updates to a new incompatible
-   * API version.
+   * 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
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -1251,7 +1147,6 @@ public com.google.protobuf.ByteString getStateBytes() {
    * 
* * .google.protobuf.Struct additional_attributes = 9; - * * @return Whether the additionalAttributes field is set. */ @java.lang.Override @@ -1259,21 +1154,19 @@ 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,
    * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
    * metadata fields that are returned by the List or Get APIs provided by the
-   * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-   * [API references and supported searchable
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
    * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
    * to see which fields are included.
    * You can search values of these fields through free text search. However,
    * you should not consume the field programically as the field names and
-   * values may change as the {{gcp_name}} service updates to a new incompatible
-   * API version.
+   * 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
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -1281,31 +1174,26 @@ 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,
    * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
    * metadata fields that are returned by the List or Get APIs provided by the
-   * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-   * [API references and supported searchable
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
    * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
    * to see which fields are included.
    * You can search values of these fields through free text search. However,
    * you should not consume the field programically as the field names and
-   * values may change as the {{gcp_name}} service updates to a new incompatible
-   * API version.
+   * 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
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -1322,8 +1210,6 @@ 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`:
@@ -1334,7 +1220,6 @@ public com.google.protobuf.StructOrBuilder getAdditionalAttributesOrBuilder() {
    * 
* * string parent_full_resource_name = 19; - * * @return The parentFullResourceName. */ @java.lang.Override @@ -1343,15 +1228,14 @@ 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`:
@@ -1362,15 +1246,16 @@ 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 { @@ -1381,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
@@ -1399,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
@@ -1413,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
@@ -1436,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
@@ -1454,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
@@ -1476,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
@@ -1494,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
@@ -1508,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
@@ -1531,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
@@ -1549,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
@@ -1569,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<
+      java.lang.String, com.google.cloud.asset.v1.RelatedResources> relationships_;
   private com.google.protobuf.MapField
-      relationships_;
-
-  private com.google.protobuf.MapField
-      internalGetRelationships() {
+  internalGetRelationships() {
     if (relationships_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           RelationshipsDefaultEntryHolder.defaultEntry);
@@ -1600,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
@@ -1613,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
@@ -1642,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
@@ -1661,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
@@ -1685,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)) {
@@ -1700,8 +1553,6 @@ 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`:
@@ -1714,15 +1565,13 @@ public com.google.cloud.asset.v1.RelatedResources getRelationshipsOrThrow(java.l
    * 
* * 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`:
@@ -1735,15 +1584,12 @@ public com.google.protobuf.ProtocolStringList getTagKeysList() {
    * 
* * 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`:
@@ -1756,7 +1602,6 @@ public int getTagKeysCount() {
    * 
* * repeated string tag_keys = 23; - * * @param index The index of the element to return. * @return The tagKeys at the given index. */ @@ -1764,8 +1609,6 @@ 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`:
@@ -1778,19 +1621,17 @@ 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}.
@@ -1805,15 +1646,13 @@ public com.google.protobuf.ByteString getTagKeysBytes(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}.
@@ -1828,15 +1667,12 @@ public com.google.protobuf.ProtocolStringList getTagValuesList() {
    * 
* * 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}.
@@ -1851,7 +1687,6 @@ public int getTagValuesCount() {
    * 
* * repeated string tag_values = 25; - * * @param index The index of the element to return. * @return The tagValues at the given index. */ @@ -1859,8 +1694,6 @@ 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}.
@@ -1875,19 +1708,17 @@ 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`:
@@ -1899,15 +1730,13 @@ public com.google.protobuf.ByteString getTagValuesBytes(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`:
@@ -1919,15 +1748,12 @@ public com.google.protobuf.ProtocolStringList getTagValueIdsList() {
    * 
* * 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`:
@@ -1939,7 +1765,6 @@ 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. */ @@ -1947,8 +1772,6 @@ 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`:
@@ -1960,19 +1783,17 @@ 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`:
@@ -1983,7 +1804,6 @@ public com.google.protobuf.ByteString getTagValueIdsBytes(int index) {
    * 
* * string parent_asset_type = 103; - * * @return The parentAssetType. */ @java.lang.Override @@ -1992,15 +1812,14 @@ 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`:
@@ -2011,15 +1830,16 @@ 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 { @@ -2028,7 +1848,6 @@ public com.google.protobuf.ByteString getParentAssetTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2040,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_); } @@ -2059,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)); } @@ -2094,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)); } @@ -2138,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; @@ -2157,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; @@ -2191,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; @@ -2248,47 +2077,70 @@ 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; } @@ -2379,104 +2231,97 @@ 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
@@ -2484,56 +2329,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2609,9 +2457,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
@@ -2630,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_;
@@ -2719,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;
@@ -2798,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_;
@@ -2858,10 +2705,9 @@ 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_);
           }
@@ -2885,16 +2731,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_;
@@ -2955,190 +2801,166 @@ 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<
-                        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:
+            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) {
@@ -3148,17 +2970,14 @@ 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`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `name`:
@@ -3167,13 +2986,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; @@ -3182,12 +3001,10 @@ public java.lang.String getName() { } } /** - * - * *
      * The full resource name of this resource. Example:
      * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `name`:
@@ -3196,14 +3013,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 { @@ -3211,12 +3029,10 @@ 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`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `name`:
@@ -3225,26 +3041,24 @@ 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 of this resource. Example:
      * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `name`:
@@ -3253,22 +3067,19 @@ 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 of this resource. Example:
      * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-     * See [{{cai_name}} Resource Name
+     * See [Cloud Asset Inventory Resource Name
      * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
      * for more information.
      * To search against the `name`:
@@ -3277,16 +3088,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; @@ -3294,8 +3105,6 @@ 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`:
@@ -3303,13 +3112,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; @@ -3318,8 +3127,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
      * The type of this resource. Example: `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
@@ -3327,14 +3134,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 { @@ -3342,8 +3150,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
      * The type of this resource. Example: `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
@@ -3351,22 +3157,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 this resource. Example: `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
@@ -3374,18 +3178,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 this resource. Example: `compute.googleapis.com/Disk`.
      * To search against the `asset_type`:
@@ -3393,16 +3194,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; @@ -3410,8 +3211,6 @@ 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
@@ -3423,13 +3222,13 @@ public Builder setAssetTypeBytes(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; @@ -3438,8 +3237,6 @@ 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
@@ -3451,14 +3248,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 { @@ -3466,8 +3264,6 @@ 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
@@ -3479,22 +3275,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 this resource belongs to, in the form of
      * projects/{PROJECT_NUMBER}. This field is available when the resource
@@ -3506,18 +3300,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 this resource belongs to, in the form of
      * projects/{PROJECT_NUMBER}. This field is available when the resource
@@ -3529,33 +3320,29 @@ 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
@@ -3567,15 +3354,13 @@ 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
@@ -3587,15 +3372,12 @@ public com.google.protobuf.ProtocolStringList getFoldersList() {
      * 
* * 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
@@ -3607,7 +3389,6 @@ public int getFoldersCount() {
      * 
* * repeated string folders = 17; - * * @param index The index of the element to return. * @return The folders at the given index. */ @@ -3615,8 +3396,6 @@ 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
@@ -3628,16 +3407,14 @@ 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
@@ -3649,23 +3426,21 @@ public com.google.protobuf.ByteString getFoldersBytes(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
@@ -3677,22 +3452,20 @@ public Builder setFolders(int index, java.lang.String value) {
      * 
* * 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
@@ -3704,19 +3477,18 @@ public Builder addFolders(java.lang.String value) {
      * 
* * 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
@@ -3728,7 +3500,6 @@ public Builder addAllFolders(java.lang.Iterable values) {
      * 
* * repeated string folders = 17; - * * @return This builder for chaining. */ public Builder clearFolders() { @@ -3738,8 +3509,6 @@ 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
@@ -3751,15 +3520,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(); @@ -3768,8 +3537,6 @@ 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
@@ -3781,13 +3548,13 @@ public Builder addFoldersBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -3796,8 +3563,6 @@ 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
@@ -3809,14 +3574,15 @@ 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 { @@ -3824,8 +3590,6 @@ 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
@@ -3837,22 +3601,20 @@ public com.google.protobuf.ByteString getOrganizationBytes() {
      * 
* * 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
@@ -3864,18 +3626,15 @@ public Builder setOrganization(java.lang.String value) {
      * 
* * 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
@@ -3887,16 +3646,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; @@ -3904,8 +3663,6 @@ 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.
@@ -3915,13 +3672,13 @@ public Builder setOrganizationBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -3930,8 +3687,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The display name of this resource. This field is available only when the
      * resource's Protobuf contains it.
@@ -3941,14 +3696,15 @@ 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 { @@ -3956,8 +3712,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The display name of this resource. This field is available only when the
      * resource's Protobuf contains it.
@@ -3967,22 +3721,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * 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.
@@ -3992,18 +3744,15 @@ public Builder setDisplayName(java.lang.String value) {
      * 
* * 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.
@@ -4013,16 +3762,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; @@ -4030,8 +3779,6 @@ 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
@@ -4042,13 +3789,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -4057,8 +3804,6 @@ 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
@@ -4069,14 +3814,15 @@ 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 { @@ -4084,8 +3830,6 @@ 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
@@ -4096,22 +3840,20 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * 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
@@ -4122,18 +3864,15 @@ public Builder setDescription(java.lang.String value) {
      * 
* * 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
@@ -4144,16 +3883,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; @@ -4161,8 +3900,6 @@ 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
@@ -4173,13 +3910,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -4188,8 +3925,6 @@ 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
@@ -4200,14 +3935,15 @@ 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 { @@ -4215,8 +3951,6 @@ 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
@@ -4227,22 +3961,20 @@ public com.google.protobuf.ByteString getLocationBytes() {
      * 
* * 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
@@ -4253,18 +3985,15 @@ public Builder setLocation(java.lang.String value) {
      * 
* * 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
@@ -4275,36 +4004,37 @@ 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 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(); @@ -4316,11 +4046,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
-     * Labels associated with this resource. See
-     * [Labelling and grouping {{gcp_name}}
+     * 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.
@@ -4334,25 +4061,24 @@ 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_name}}
+     * 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.
@@ -4367,15 +4093,13 @@ 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_name}}
+     * 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.
@@ -4390,20 +4114,18 @@ 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_name}}
+     * 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.
@@ -4418,11 +4140,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();
       }
@@ -4430,15 +4153,13 @@ 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_name}}
+     * 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.
@@ -4452,24 +4173,25 @@ 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_name}}
+     * 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.
@@ -4483,23 +4205,21 @@ 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 associated with this resource. See
-     * [Labelling and grouping {{gcp_name}}
+     * 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.
@@ -4513,27 +4233,25 @@ 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.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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4543,19 +4261,16 @@ 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4565,19 +4280,15 @@ public com.google.protobuf.ProtocolStringList getNetworkTagsList() {
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4587,7 +4298,6 @@ public int getNetworkTagsCount() {
      * 
* * repeated string network_tags = 8; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -4595,12 +4305,9 @@ 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4610,20 +4317,17 @@ 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4633,27 +4337,24 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4663,26 +4364,23 @@ public Builder setNetworkTags(int index, java.lang.String value) {
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4692,23 +4390,21 @@ public Builder addNetworkTags(java.lang.String value) {
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4718,7 +4414,6 @@ public Builder addAllNetworkTags(java.lang.Iterable values) {
      * 
* * repeated string network_tags = 8; - * * @return This builder for chaining. */ public Builder clearNetworkTags() { @@ -4728,12 +4423,9 @@ public Builder clearNetworkTags() { return this; } /** - * - * *
      * Network tags associated with this resource. Like labels, network tags are a
-     * type of annotations used to group {{gcp_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * 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.
@@ -4743,15 +4435,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(); @@ -4760,18 +4452,16 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKey_ = ""; /** - * - * *
-     * The {{kms_name_short}}
+     * 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_name_short}} key information.
-     * This field is available only when the resource's Protobuf contains it and
-     * will only be populated for [these resource
+     * 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`:
@@ -4780,16 +4470,15 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_key = 10 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See - * google/cloud/asset/v1/assets.proto;l=438 + * @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; @@ -4798,18 +4487,16 @@ public java.lang.String getKmsKey() { } } /** - * - * *
-     * The {{kms_name_short}}
+     * 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_name_short}} key information.
-     * This field is available only when the resource's Protobuf contains it and
-     * will only be populated for [these resource
+     * 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`:
@@ -4818,17 +4505,17 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 10 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See - * google/cloud/asset/v1/assets.proto;l=438 + * @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 { @@ -4836,18 +4523,16 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } /** - * - * *
-     * The {{kms_name_short}}
+     * 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_name_short}} key information.
-     * This field is available only when the resource's Protobuf contains it and
-     * will only be populated for [these resource
+     * 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`:
@@ -4856,35 +4541,32 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
      * 
* * string kms_key = 10 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See - * google/cloud/asset/v1/assets.proto;l=438 + * @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 {{kms_name_short}}
+     * 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_name_short}} key information.
-     * This field is available only when the resource's Protobuf contains it and
-     * will only be populated for [these resource
+     * 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`:
@@ -4893,31 +4575,27 @@ public Builder setKmsKey(java.lang.String value) {
      * 
* * string kms_key = 10 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See - * google/cloud/asset/v1/assets.proto;l=438 + * @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 {{kms_name_short}}
+     * 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_name_short}} key information.
-     * This field is available only when the resource's Protobuf contains it and
-     * will only be populated for [these resource
+     * 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`:
@@ -4926,38 +4604,33 @@ public Builder clearKmsKey() {
      * 
* * string kms_key = 10 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See - * google/cloud/asset/v1/assets.proto;l=438 + * @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 {{kms_name_short}}
+     * 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)
@@ -4969,17 +4642,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 {{kms_name_short}}
+     * 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)
@@ -4991,17 +4662,14 @@ public com.google.protobuf.ProtocolStringList getKmsKeysList() {
      * 
* * repeated string kms_keys = 28; - * * @return The count of kmsKeys. */ public int getKmsKeysCount() { return kmsKeys_.size(); } /** - * - * *
-     * The {{kms_name_short}}
+     * 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)
@@ -5013,7 +4681,6 @@ public int getKmsKeysCount() {
      * 
* * repeated string kms_keys = 28; - * * @param index The index of the element to return. * @return The kmsKeys at the given index. */ @@ -5021,10 +4688,8 @@ public java.lang.String getKmsKeys(int index) { return kmsKeys_.get(index); } /** - * - * *
-     * The {{kms_name_short}}
+     * 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)
@@ -5036,18 +4701,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 {{kms_name_short}}
+     * 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)
@@ -5059,25 +4722,23 @@ public com.google.protobuf.ByteString getKmsKeysBytes(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 {{kms_name_short}}
+     * 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)
@@ -5089,24 +4750,22 @@ public Builder setKmsKeys(int index, java.lang.String value) {
      * 
* * 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 {{kms_name_short}}
+     * 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)
@@ -5118,21 +4777,20 @@ public Builder addKmsKeys(java.lang.String value) {
      * 
* * 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 {{kms_name_short}}
+     * 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)
@@ -5144,7 +4802,6 @@ public Builder addAllKmsKeys(java.lang.Iterable values) {
      * 
* * repeated string kms_keys = 28; - * * @return This builder for chaining. */ public Builder clearKmsKeys() { @@ -5154,10 +4811,8 @@ public Builder clearKmsKeys() { return this; } /** - * - * *
-     * The {{kms_name_short}}
+     * 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)
@@ -5169,15 +4824,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(); @@ -5186,13 +4841,8 @@ public Builder addKmsKeysBytes(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_; /** - * - * *
      * 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
@@ -5206,15 +4856,12 @@ public Builder addKmsKeysBytes(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
@@ -5228,21 +4875,16 @@ 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
@@ -5271,8 +4913,6 @@ 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
@@ -5287,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();
@@ -5298,8 +4939,6 @@ 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
@@ -5318,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;
         }
@@ -5330,8 +4969,6 @@ 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
@@ -5358,8 +4995,6 @@ 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
@@ -5375,13 +5010,11 @@ 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
@@ -5400,14 +5033,11 @@ 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
@@ -5423,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_;
@@ -5441,13 +5068,8 @@ 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
@@ -5462,15 +5084,12 @@ 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
@@ -5485,21 +5104,16 @@ 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
@@ -5529,8 +5143,6 @@ 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
@@ -5546,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();
@@ -5557,8 +5170,6 @@ 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
@@ -5578,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;
         }
@@ -5590,8 +5201,6 @@ 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
@@ -5619,8 +5228,6 @@ 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
@@ -5637,13 +5244,11 @@ 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
@@ -5663,14 +5268,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 this resource, at which the resource was last
      * modified or deleted. The granularity is in seconds. Timestamp.nanos will
@@ -5687,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_;
@@ -5705,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
@@ -5718,8 +5315,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
      * in [API
      * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-     * If the resource is a project provided by {{crm_name}}, its state will
-     * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+     * If the resource is a project provided by Cloud Resource Manager, its state
+     * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
      * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
      * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
      * To search against the `state`:
@@ -5728,13 +5325,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; @@ -5743,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
@@ -5756,8 +5351,8 @@ public java.lang.String getState() {
      * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
      * in [API
      * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-     * If the resource is a project provided by {{crm_name}}, its state will
-     * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+     * If the resource is a project provided by Cloud Resource Manager, its state
+     * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
      * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
      * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
      * To search against the `state`:
@@ -5766,14 +5361,15 @@ 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 { @@ -5781,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
@@ -5794,8 +5388,8 @@ public com.google.protobuf.ByteString getStateBytes() {
      * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
      * in [API
      * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-     * If the resource is a project provided by {{crm_name}}, its state will
-     * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+     * If the resource is a project provided by Cloud Resource Manager, its state
+     * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
      * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
      * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
      * To search against the `state`:
@@ -5804,22 +5398,20 @@ public com.google.protobuf.ByteString getStateBytes() {
      * 
* * 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
@@ -5831,8 +5423,8 @@ public Builder setState(java.lang.String value) {
      * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
      * in [API
      * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-     * If the resource is a project provided by {{crm_name}}, its state will
-     * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+     * If the resource is a project provided by Cloud Resource Manager, its state
+     * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
      * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
      * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
      * To search against the `state`:
@@ -5841,18 +5433,15 @@ public Builder setState(java.lang.String value) {
      * 
* * 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
@@ -5864,8 +5453,8 @@ public Builder clearState() {
      * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
      * in [API
      * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-     * If the resource is a project provided by {{crm_name}}, its state will
-     * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+     * If the resource is a project provided by Cloud Resource Manager, its state
+     * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
      * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
      * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
      * To search against the `state`:
@@ -5874,16 +5463,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; @@ -5891,26 +5480,21 @@ 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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -5918,28 +5502,25 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) {
      * 
* * .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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -5947,34 +5528,29 @@ 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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -5997,21 +5573,19 @@ 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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -6020,7 +5594,8 @@ 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();
@@ -6031,21 +5606,19 @@ 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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -6058,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;
         }
@@ -6072,21 +5643,19 @@ 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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -6107,21 +5676,19 @@ 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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -6131,26 +5698,24 @@ 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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -6163,27 +5728,24 @@ 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,
      * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
      * metadata fields that are returned by the List or Get APIs provided by the
-     * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-     * [API references and supported searchable
+     * corresponding GCP service (e.g., Compute Engine). see [API references and
+     * supported searchable
      * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
      * to see which fields are included.
      * You can search values of these fields through free text search. However,
      * you should not consume the field programically as the field names and
-     * values may change as the {{gcp_name}} service updates to a new incompatible
-     * API version.
+     * 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
      *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -6193,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_;
@@ -6211,8 +5770,6 @@ 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`:
@@ -6223,13 +5780,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; @@ -6238,8 +5795,6 @@ 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`:
@@ -6250,14 +5805,15 @@ 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 { @@ -6265,8 +5821,6 @@ 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`:
@@ -6277,22 +5831,20 @@ public com.google.protobuf.ByteString getParentFullResourceNameBytes() {
      * 
* * 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`:
@@ -6303,18 +5855,15 @@ public Builder setParentFullResourceName(java.lang.String value) {
      * 
* * 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`:
@@ -6325,42 +5874,34 @@ 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
@@ -6380,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
@@ -6401,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
@@ -6422,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
@@ -6450,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
@@ -6475,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
@@ -6501,9 +6032,7 @@ 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
@@ -6530,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
@@ -6555,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
@@ -6580,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
@@ -6597,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);
@@ -6605,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
@@ -6629,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
@@ -6653,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
@@ -6671,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
@@ -6687,14 +6203,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 resource. This is repeated
      * because there could be multiple versions of resource representations during
@@ -6706,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 {
@@ -6715,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
@@ -6729,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
@@ -6748,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
@@ -6765,22 +6272,16 @@ 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(),
@@ -6791,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_ & 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
@@ -6829,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
@@ -6850,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
@@ -6871,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
@@ -6899,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
@@ -6924,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
@@ -6951,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
@@ -6979,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
@@ -7004,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
@@ -7029,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
@@ -7046,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);
@@ -7054,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
@@ -7078,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
@@ -7102,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
@@ -7120,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
@@ -7136,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
@@ -7155,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 {
@@ -7164,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
@@ -7178,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
@@ -7197,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
@@ -7214,22 +6674,16 @@ 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(),
@@ -7240,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();
@@ -7272,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
@@ -7285,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
@@ -7314,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
@@ -7333,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
@@ -7357,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)) {
@@ -7371,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
@@ -7388,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
@@ -7416,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
@@ -7441,24 +6879,22 @@ 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`:
@@ -7471,15 +6907,13 @@ 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`:
@@ -7492,15 +6926,12 @@ public com.google.protobuf.ProtocolStringList getTagKeysList() {
      * 
* * 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`:
@@ -7513,7 +6944,6 @@ public int getTagKeysCount() {
      * 
* * repeated string tag_keys = 23; - * * @param index The index of the element to return. * @return The tagKeys at the given index. */ @@ -7521,8 +6951,6 @@ 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`:
@@ -7535,16 +6963,14 @@ 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`:
@@ -7557,23 +6983,21 @@ public com.google.protobuf.ByteString getTagKeysBytes(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`:
@@ -7586,22 +7010,20 @@ public Builder setTagKeys(int index, java.lang.String value) {
      * 
* * 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`:
@@ -7614,19 +7036,18 @@ public Builder addTagKeys(java.lang.String value) {
      * 
* * 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`:
@@ -7639,7 +7060,6 @@ public Builder addAllTagKeys(java.lang.Iterable values) {
      * 
* * repeated string tag_keys = 23; - * * @return This builder for chaining. */ public Builder clearTagKeys() { @@ -7649,8 +7069,6 @@ public Builder clearTagKeys() { return this; } /** - * - * *
      * TagKey namespaced names, in the format of {ORG_ID}/{TAG_KEY_SHORT_NAME}.
      * To search against the `tagKeys`:
@@ -7663,33 +7081,29 @@ 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}.
@@ -7704,15 +7118,13 @@ 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}.
@@ -7727,15 +7139,12 @@ public com.google.protobuf.ProtocolStringList getTagValuesList() {
      * 
* * 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}.
@@ -7750,7 +7159,6 @@ public int getTagValuesCount() {
      * 
* * repeated string tag_values = 25; - * * @param index The index of the element to return. * @return The tagValues at the given index. */ @@ -7758,8 +7166,6 @@ 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}.
@@ -7774,16 +7180,14 @@ 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}.
@@ -7798,23 +7202,21 @@ public com.google.protobuf.ByteString getTagValuesBytes(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}.
@@ -7829,22 +7231,20 @@ public Builder setTagValues(int index, java.lang.String value) {
      * 
* * 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}.
@@ -7859,19 +7259,18 @@ public Builder addTagValues(java.lang.String value) {
      * 
* * 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}.
@@ -7886,7 +7285,6 @@ public Builder addAllTagValues(java.lang.Iterable values) {
      * 
* * repeated string tag_values = 25; - * * @return This builder for chaining. */ public Builder clearTagValues() { @@ -7896,8 +7294,6 @@ public Builder clearTagValues() { return this; } /** - * - * *
      * TagValue namespaced names, in the format of
      * {ORG_ID}/{TAG_KEY_SHORT_NAME}/{TAG_VALUE_SHORT_NAME}.
@@ -7912,33 +7308,29 @@ 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`:
@@ -7950,15 +7342,13 @@ 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`:
@@ -7970,15 +7360,12 @@ public com.google.protobuf.ProtocolStringList getTagValueIdsList() {
      * 
* * 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`:
@@ -7990,7 +7377,6 @@ 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. */ @@ -7998,8 +7384,6 @@ 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`:
@@ -8011,16 +7395,14 @@ 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`:
@@ -8032,23 +7414,21 @@ public com.google.protobuf.ByteString getTagValueIdsBytes(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`:
@@ -8060,22 +7440,20 @@ public Builder setTagValueIds(int index, java.lang.String value) {
      * 
* * 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`:
@@ -8087,19 +7465,18 @@ public Builder addTagValueIds(java.lang.String value) {
      * 
* * 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`:
@@ -8111,7 +7488,6 @@ public Builder addAllTagValueIds(java.lang.Iterable values) {
      * 
* * repeated string tag_value_ids = 26; - * * @return This builder for chaining. */ public Builder clearTagValueIds() { @@ -8121,8 +7497,6 @@ public Builder clearTagValueIds() { return this; } /** - * - * *
      * TagValue IDs, in the format of tagValues/{TAG_VALUE_ID}.
      * To search against the `tagValueIds`:
@@ -8134,15 +7508,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(); @@ -8151,8 +7525,6 @@ 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`:
@@ -8163,13 +7535,13 @@ public Builder addTagValueIdsBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -8178,8 +7550,6 @@ public java.lang.String getParentAssetType() { } } /** - * - * *
      * The type of this resource's immediate parent, if there is one.
      * To search against the `parent_asset_type`:
@@ -8190,14 +7560,15 @@ 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 { @@ -8205,8 +7576,6 @@ 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`:
@@ -8217,22 +7586,20 @@ public com.google.protobuf.ByteString getParentAssetTypeBytes() {
      * 
* * 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`:
@@ -8243,18 +7610,15 @@ public Builder setParentAssetType(java.lang.String value) {
      * 
* * 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`:
@@ -8265,23 +7629,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); } @@ -8291,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(); } @@ -8305,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -8340,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 87% 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 d0de985ccd7f..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,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/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`.
-   * See [{{cai_name}} Resource Name
+   * See [Cloud Asset Inventory Resource Name
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `name`:
@@ -38,17 +20,14 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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`.
-   * See [{{cai_name}} Resource Name
+   * See [Cloud Asset Inventory Resource Name
    * Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
    * for more information.
    * To search against the `name`:
@@ -57,14 +36,12 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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`:
@@ -72,13 +49,10 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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`:
@@ -86,14 +60,12 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -105,13 +77,10 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -123,14 +92,12 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -142,13 +109,11 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -160,13 +125,10 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -178,14 +140,11 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -197,15 +156,13 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -217,13 +174,10 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -235,14 +189,12 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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.
@@ -252,13 +204,10 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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.
@@ -268,14 +217,12 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -286,13 +233,10 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -303,14 +247,12 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -321,13 +263,10 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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
@@ -338,17 +277,14 @@ public interface ResourceSearchResultOrBuilder
    * 
* * 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_name}}
+   * 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.
@@ -364,11 +300,8 @@ public interface ResourceSearchResultOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
-   * Labels associated with this resource. See
-   * [Labelling and grouping {{gcp_name}}
+   * 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.
@@ -382,16 +315,17 @@ public interface ResourceSearchResultOrBuilder
    *
    * 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_name}}
+   * 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.
@@ -405,13 +339,11 @@ public interface ResourceSearchResultOrBuilder
    *
    * map<string, string> labels = 7;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
-   * Labels associated with this resource. See
-   * [Labelling and grouping {{gcp_name}}
+   * 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.
@@ -427,16 +359,13 @@ public interface ResourceSearchResultOrBuilder
    */
 
   /* 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_name}}
+   * 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.
@@ -450,15 +379,14 @@ 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * 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.
@@ -468,17 +396,14 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * 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.
@@ -488,17 +413,13 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * 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.
@@ -508,18 +429,14 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * 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.
@@ -529,25 +446,23 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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 {{kms_name_short}}
+   * 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_name_short}} key information.
-   * This field is available only when the resource's Protobuf contains it and
-   * will only be populated for [these resource
+   * 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`:
@@ -556,26 +471,22 @@ java.lang.String getLabelsOrDefault(
    * 
* * string kms_key = 10 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See - * google/cloud/asset/v1/assets.proto;l=438 + * @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 {{kms_name_short}}
+   * 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_name_short}} key information.
-   * This field is available only when the resource's Protobuf contains it and
-   * will only be populated for [these resource
+   * 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`:
@@ -584,19 +495,16 @@ java.lang.String getLabelsOrDefault(
    * 
* * string kms_key = 10 [deprecated = true]; - * - * @deprecated google.cloud.asset.v1.ResourceSearchResult.kms_key is deprecated. See - * google/cloud/asset/v1/assets.proto;l=438 + * @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 {{kms_name_short}}
+   * 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)
@@ -608,15 +516,13 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string kms_keys = 28; - * * @return A list containing the kmsKeys. */ - java.util.List getKmsKeysList(); + java.util.List + getKmsKeysList(); /** - * - * *
-   * The {{kms_name_short}}
+   * 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)
@@ -628,15 +534,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string kms_keys = 28; - * * @return The count of kmsKeys. */ int getKmsKeysCount(); /** - * - * *
-   * The {{kms_name_short}}
+   * 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)
@@ -648,16 +551,13 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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 {{kms_name_short}}
+   * 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)
@@ -669,15 +569,13 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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
@@ -691,13 +589,10 @@ 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
@@ -711,13 +606,10 @@ 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
@@ -735,8 +627,6 @@ 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
@@ -751,13 +641,10 @@ 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
@@ -772,13 +659,10 @@ 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
@@ -797,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
@@ -810,8 +692,8 @@ java.lang.String getLabelsOrDefault(
    * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
    * in [API
    * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-   * If the resource is a project provided by {{crm_name}}, its state will
-   * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+   * If the resource is a project provided by Cloud Resource Manager, its state
+   * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
    * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
    * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
    * To search against the `state`:
@@ -820,13 +702,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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
@@ -838,8 +717,8 @@ java.lang.String getLabelsOrDefault(
    * SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
    * in [API
    * Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-   * If the resource is a project provided by {{crm_name}}, its state will
-   * include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+   * If the resource is a project provided by Cloud Resource Manager, its state
+   * will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
    * DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
    * Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
    * To search against the `state`:
@@ -848,27 +727,25 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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,
    * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
    * metadata fields that are returned by the List or Get APIs provided by the
-   * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-   * [API references and supported searchable
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
    * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
    * to see which fields are included.
    * You can search values of these fields through free text search. However,
    * you should not consume the field programically as the field names and
-   * values may change as the {{gcp_name}} service updates to a new incompatible
-   * API version.
+   * 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
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -876,26 +753,23 @@ java.lang.String getLabelsOrDefault(
    * 
* * .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,
    * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
    * metadata fields that are returned by the List or Get APIs provided by the
-   * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-   * [API references and supported searchable
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
    * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
    * to see which fields are included.
    * You can search values of these fields through free text search. However,
    * you should not consume the field programically as the field names and
-   * values may change as the {{gcp_name}} service updates to a new incompatible
-   * API version.
+   * 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
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -903,26 +777,23 @@ java.lang.String getLabelsOrDefault(
    * 
* * .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,
    * `dnsName` for DNS ManagedZone. This field contains a subset of the resource
    * metadata fields that are returned by the List or Get APIs provided by the
-   * corresponding {{gcp_name}} service (e.g., Compute Engine). see
-   * [API references and supported searchable
+   * corresponding GCP service (e.g., Compute Engine). see [API references and
+   * supported searchable
    * attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
    * to see which fields are included.
    * You can search values of these fields through free text search. However,
    * you should not consume the field programically as the field names and
-   * values may change as the {{gcp_name}} service updates to a new incompatible
-   * API version.
+   * 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
    *   `additional_attributes = { dnsName: "foobar" }`, you can issue a query
@@ -934,8 +805,6 @@ 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`:
@@ -946,13 +815,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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`:
@@ -963,14 +829,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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
@@ -982,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
@@ -999,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
@@ -1014,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
@@ -1027,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
@@ -1043,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
@@ -1059,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
@@ -1076,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
@@ -1091,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
@@ -1104,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
@@ -1120,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
@@ -1138,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
@@ -1151,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
@@ -1169,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
@@ -1186,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
@@ -1204,11 +1049,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`:
@@ -1221,13 +1066,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1240,13 +1083,10 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1259,14 +1099,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1279,15 +1116,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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}.
@@ -1302,13 +1137,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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}.
@@ -1323,13 +1156,10 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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}.
@@ -1344,14 +1174,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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}.
@@ -1366,15 +1193,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1386,13 +1211,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1404,13 +1227,10 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1422,14 +1242,11 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1441,15 +1258,13 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1460,13 +1275,10 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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`:
@@ -1477,8 +1289,8 @@ com.google.cloud.asset.v1.RelatedResources getRelationshipsOrDefault(
    * 
* * 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 64% 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 d83f1c833630..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,90 +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; } - - 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_name_short}} 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.
+     * 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.
      * 
* * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return Whether the iamPolicyAnalysisQuery field is set. */ boolean hasIamPolicyAnalysisQuery(); /** - * - * *
-     * An {{iam_name_short}} 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.
+     * 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.
      * 
* * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return The iamPolicyAnalysisQuery. */ com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuery(); /** - * - * *
-     * An {{iam_name_short}} 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.
+     * 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.
      * 
* * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -139,63 +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; } - - 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; } @@ -211,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_name_short}} 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.
+     * 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.
      * 
* * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return Whether the iamPolicyAnalysisQuery field is set. */ @java.lang.Override @@ -251,53 +201,40 @@ public boolean hasIamPolicyAnalysisQuery() { return queryContentCase_ == 1; } /** - * - * *
-     * An {{iam_name_short}} 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.
+     * 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.
      * 
* * .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_name_short}} 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.
+     * 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.
      * 
* * .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; @@ -309,7 +246,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 (queryContentCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1.IamPolicyAnalysisQuery) queryContent_); } @@ -323,9 +261,8 @@ 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; @@ -335,18 +272,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: @@ -376,93 +313,87 @@ 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 @@ -472,41 +403,39 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -519,9 +448,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 @@ -540,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_; @@ -558,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; @@ -600,18 +525,15 @@ 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(); @@ -639,20 +561,19 @@ 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) { @@ -662,12 +583,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() { @@ -677,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_name_short}} 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.
+       * 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.
        * 
* * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return Whether the iamPolicyAnalysisQuery field is set. */ @java.lang.Override @@ -703,19 +616,13 @@ public boolean hasIamPolicyAnalysisQuery() { return queryContentCase_ == 1; } /** - * - * *
-       * An {{iam_name_short}} 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.
+       * 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.
        * 
* * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; - * * @return The iamPolicyAnalysisQuery. */ @java.lang.Override @@ -733,21 +640,15 @@ public com.google.cloud.asset.v1.IamPolicyAnalysisQuery getIamPolicyAnalysisQuer } } /** - * - * *
-       * An {{iam_name_short}} 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.
+       * 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.
        * 
* * .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(); @@ -761,15 +662,10 @@ public Builder setIamPolicyAnalysisQuery( return this; } /** - * - * *
-       * An {{iam_name_short}} 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.
+       * 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.
        * 
* * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -786,30 +682,20 @@ public Builder setIamPolicyAnalysisQuery( return this; } /** - * - * *
-       * An {{iam_name_short}} 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.
+       * 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.
        * 
* * .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; } @@ -825,15 +711,10 @@ public Builder mergeIamPolicyAnalysisQuery( return this; } /** - * - * *
-       * An {{iam_name_short}} 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.
+       * 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.
        * 
* * .google.cloud.asset.v1.IamPolicyAnalysisQuery iam_policy_analysis_query = 1; @@ -855,40 +736,28 @@ public Builder clearIamPolicyAnalysisQuery() { return this; } /** - * - * *
-       * An {{iam_name_short}} 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.
+       * 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.
        * 
* * .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_name_short}} 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.
+       * 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.
        * 
* * .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 { @@ -899,44 +768,32 @@ public Builder clearIamPolicyAnalysisQuery() { } } /** - * - * *
-       * An {{iam_name_short}} 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.
+       * 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.
        * 
* * .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) { @@ -949,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(); } @@ -963,28 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -999,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
@@ -1014,7 +869,6 @@ public com.google.cloud.asset.v1.SavedQuery.QueryContent getDefaultInstanceForTy
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1023,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
@@ -1040,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 { @@ -1059,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 @@ -1076,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 { @@ -1110,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 @@ -1126,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 @@ -1142,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() { @@ -1159,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 @@ -1175,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 { @@ -1208,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 @@ -1225,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() { @@ -1262,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 @@ -1279,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 { @@ -1311,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_; } @@ -1336,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
@@ -1346,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
@@ -1371,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
@@ -1386,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
@@ -1405,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();
     }
@@ -1419,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 @@ -1434,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.
    * 
@@ -1465,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; @@ -1477,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_); } @@ -1496,8 +1301,12 @@ 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()); } @@ -1517,29 +1326,32 @@ 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; @@ -1549,29 +1361,37 @@ 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; @@ -1613,155 +1433,152 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1796,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 @@ -1848,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; @@ -1911,7 +1727,8 @@ 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()); } @@ -1941,66 +1758,61 @@ 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) { @@ -2010,13 +1822,10 @@ 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
@@ -2025,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; @@ -2040,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
@@ -2050,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 { @@ -2065,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
@@ -2075,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
@@ -2099,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
@@ -2119,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; @@ -2136,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; @@ -2159,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 { @@ -2182,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; @@ -2247,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) { @@ -2314,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(); @@ -2335,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; } @@ -2361,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) { @@ -2383,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_; @@ -2448,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; @@ -2470,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 { @@ -2492,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; @@ -2554,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) { @@ -2621,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(); @@ -2642,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; } @@ -2670,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) { @@ -2692,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_; @@ -2757,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; @@ -2780,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 { @@ -2803,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(); @@ -2892,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
@@ -2902,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
@@ -2927,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
@@ -2942,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
@@ -2962,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();
       }
@@ -2974,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
@@ -2988,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
@@ -3011,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
@@ -3033,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.
      * 
@@ -3101,8 +2761,6 @@ public Builder setContent(com.google.cloud.asset.v1.SavedQuery.QueryContent valu return this; } /** - * - * *
      * The query content.
      * 
@@ -3121,8 +2779,6 @@ public Builder setContent( return this; } /** - * - * *
      * The query content.
      * 
@@ -3133,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; } @@ -3147,8 +2801,6 @@ public Builder mergeContent(com.google.cloud.asset.v1.SavedQuery.QueryContent va return this; } /** - * - * *
      * The query content.
      * 
@@ -3167,8 +2819,6 @@ public Builder clearContent() { return this; } /** - * - * *
      * The query content.
      * 
@@ -3176,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.
      * 
@@ -3193,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.
      * 
@@ -3208,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); } @@ -3235,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(); } @@ -3249,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -3284,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 59% 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 5d3a7e5c4e05..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_name_short}} policies request.
+ * 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,39 +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; } - - 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_name_short}} 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:
@@ -90,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 @@ -99,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_name_short}} 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:
@@ -122,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 { @@ -141,64 +119,50 @@ 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)
    * for more information. If not specified or empty, it will search all the
-   * {{iam_name_short}} policies within the specified `scope`. Note that the
-   * query string is compared against each {{iam_name_short}} policy binding,
-   * including its principals, roles, and {{iam_name_short}} conditions. The
-   * returned {{iam_name_short}} policies will only contain the bindings that
-   * match your query. To learn more about the {{iam_name_short}} policy
-   * structure, see the [{{iam_name_short}} policy
+   * IAM policies within the specified `scope`. Note that the query string is
+   * compared against each Cloud IAM policy binding, including its principals,
+   * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+   * contain the bindings that match your query. To learn more about the IAM
+   * policy structure, see the [IAM policy
    * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
    * Examples:
-   * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-   * specify user
+   * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
    *   "amy@gmail.com".
-   * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-   * that specify
+   * * `policy:roles/compute.admin` to find IAM policy bindings that specify
    *   the Compute Admin role.
-   * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-   * "comp" as a
+   * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
    *   prefix of any word in the binding.
-   * * `policy.role.permissions:storage.buckets.update` to find
-   * {{iam_name_short}} policy
+   * * `policy.role.permissions:storage.buckets.update` to find IAM policy
    *   bindings that specify a role containing "storage.buckets.update"
    *   permission. Note that if callers don't have `iam.roles.get` access to a
    *   role's included permissions, policy bindings that specify this role will
    *   be dropped from the search results.
-   * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-   * that specify a
+   * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
    *   role containing "upd" as a prefix of any word in the role permission.
    *   Note that if callers don't have `iam.roles.get` access to a role's
    *   included permissions, policy bindings that specify this role will be
    *   dropped from the search results.
-   * * `resource:organizations/123456` to find {{iam_name_short}} policy
-   * bindings
+   * * `resource:organizations/123456` to find IAM policy bindings
    *   that are set on "organizations/123456".
    * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-   *   find {{iam_name_short}} policy bindings that are set on the project named
-   *   "myproject".
-   * * `Important` to find {{iam_name_short}} policy bindings that contain
-   * "Important" as a
+   *   find IAM policy bindings that are set on the project named "myproject".
+   * * `Important` to find IAM policy bindings that contain "Important" as a
    *   word in any of the searchable fields (except for the included
    *   permissions).
    * * `resource:(instance1 OR instance2) policy:amy` to find
-   *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-   *   or "instance2" and also specify user "amy".
-   * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-   * that specify the
+   *   IAM policy bindings that are set on resources "instance1" or
+   *   "instance2" and also specify user "amy".
+   * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
    *   Compute Admin role.
-   * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-   * contain the
+   * * `memberTypes:user` to find IAM policy bindings that contain the
    *   principal type "user".
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ @java.lang.Override @@ -207,79 +171,68 @@ 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)
    * for more information. If not specified or empty, it will search all the
-   * {{iam_name_short}} policies within the specified `scope`. Note that the
-   * query string is compared against each {{iam_name_short}} policy binding,
-   * including its principals, roles, and {{iam_name_short}} conditions. The
-   * returned {{iam_name_short}} policies will only contain the bindings that
-   * match your query. To learn more about the {{iam_name_short}} policy
-   * structure, see the [{{iam_name_short}} policy
+   * IAM policies within the specified `scope`. Note that the query string is
+   * compared against each Cloud IAM policy binding, including its principals,
+   * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+   * contain the bindings that match your query. To learn more about the IAM
+   * policy structure, see the [IAM policy
    * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
    * Examples:
-   * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-   * specify user
+   * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
    *   "amy@gmail.com".
-   * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-   * that specify
+   * * `policy:roles/compute.admin` to find IAM policy bindings that specify
    *   the Compute Admin role.
-   * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-   * "comp" as a
+   * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
    *   prefix of any word in the binding.
-   * * `policy.role.permissions:storage.buckets.update` to find
-   * {{iam_name_short}} policy
+   * * `policy.role.permissions:storage.buckets.update` to find IAM policy
    *   bindings that specify a role containing "storage.buckets.update"
    *   permission. Note that if callers don't have `iam.roles.get` access to a
    *   role's included permissions, policy bindings that specify this role will
    *   be dropped from the search results.
-   * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-   * that specify a
+   * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
    *   role containing "upd" as a prefix of any word in the role permission.
    *   Note that if callers don't have `iam.roles.get` access to a role's
    *   included permissions, policy bindings that specify this role will be
    *   dropped from the search results.
-   * * `resource:organizations/123456` to find {{iam_name_short}} policy
-   * bindings
+   * * `resource:organizations/123456` to find IAM policy bindings
    *   that are set on "organizations/123456".
    * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-   *   find {{iam_name_short}} policy bindings that are set on the project named
-   *   "myproject".
-   * * `Important` to find {{iam_name_short}} policy bindings that contain
-   * "Important" as a
+   *   find IAM policy bindings that are set on the project named "myproject".
+   * * `Important` to find IAM policy bindings that contain "Important" as a
    *   word in any of the searchable fields (except for the included
    *   permissions).
    * * `resource:(instance1 OR instance2) policy:amy` to find
-   *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-   *   or "instance2" and also specify user "amy".
-   * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-   * that specify the
+   *   IAM policy bindings that are set on resources "instance1" or
+   *   "instance2" and also specify user "amy".
+   * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
    *   Compute Admin role.
-   * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-   * contain the
+   * * `memberTypes:user` to find IAM policy bindings that contain the
    *   principal type "user".
    * 
* * 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 { @@ -290,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 @@ -312,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 @@ -331,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 { @@ -367,81 +313,70 @@ 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_name_short}} policies are
-   * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-   * to asset type starts with "compute.googleapis.com".
-   * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-   * ends with "Instance".
-   * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-   * type contains "Instance".
+   * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+   * starts with "compute.googleapis.com".
+   * * ".*Instance" snapshots IAM policies attached to asset type ends with
+   * "Instance".
+   * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+   * "Instance".
    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * 
* * 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_name_short}} policies are
-   * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-   * to asset type starts with "compute.googleapis.com".
-   * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-   * ends with "Instance".
-   * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-   * type contains "Instance".
+   * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+   * starts with "compute.googleapis.com".
+   * * ".*Instance" snapshots IAM policies attached to asset type ends with
+   * "Instance".
+   * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+   * "Instance".
    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * 
* * 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_name_short}} policies are
-   * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-   * to asset type starts with "compute.googleapis.com".
-   * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-   * ends with "Instance".
-   * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-   * type contains "Instance".
+   * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+   * starts with "compute.googleapis.com".
+   * * ".*Instance" snapshots IAM policies attached to asset type ends with
+   * "Instance".
+   * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+   * "Instance".
    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * 
* * 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. */ @@ -449,43 +384,38 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
-   * Optional. A list of asset types that the {{iam_name_short}} policies are
-   * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-   * to asset type starts with "compute.googleapis.com".
-   * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-   * ends with "Instance".
-   * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-   * type contains "Instance".
+   * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+   * starts with "compute.googleapis.com".
+   * * ".*Instance" snapshots IAM policies attached to asset type ends with
+   * "Instance".
+   * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+   * "Instance".
    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * 
* * 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
@@ -496,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 @@ -505,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
@@ -528,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 { @@ -545,7 +474,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -557,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_); } @@ -592,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_); @@ -616,20 +546,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.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; } @@ -661,136 +596,129 @@ 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_name_short}} policies request.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -810,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 @@ -831,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_; @@ -852,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; @@ -892,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(); @@ -949,50 +874,43 @@ 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) { @@ -1002,17 +920,14 @@ 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_name_short}} 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:
@@ -1023,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; @@ -1038,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_name_short}} 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:
@@ -1054,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 { @@ -1069,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_name_short}} 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:
@@ -1085,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_name_short}} 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:
@@ -1115,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_name_short}} 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:
@@ -1141,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; @@ -1158,70 +1065,57 @@ 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)
      * for more information. If not specified or empty, it will search all the
-     * {{iam_name_short}} policies within the specified `scope`. Note that the
-     * query string is compared against each {{iam_name_short}} policy binding,
-     * including its principals, roles, and {{iam_name_short}} conditions. The
-     * returned {{iam_name_short}} policies will only contain the bindings that
-     * match your query. To learn more about the {{iam_name_short}} policy
-     * structure, see the [{{iam_name_short}} policy
+     * IAM policies within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its principals,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see the [IAM policy
      * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
      * Examples:
-     * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-     * specify user
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
      *   "amy@gmail.com".
-     * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
      *   the Compute Admin role.
-     * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-     * "comp" as a
+     * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
      *   prefix of any word in the binding.
-     * * `policy.role.permissions:storage.buckets.update` to find
-     * {{iam_name_short}} policy
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
      *   bindings that specify a role containing "storage.buckets.update"
      *   permission. Note that if callers don't have `iam.roles.get` access to a
      *   role's included permissions, policy bindings that specify this role will
      *   be dropped from the search results.
-     * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-     * that specify a
+     * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
      *   role containing "upd" as a prefix of any word in the role permission.
      *   Note that if callers don't have `iam.roles.get` access to a role's
      *   included permissions, policy bindings that specify this role will be
      *   dropped from the search results.
-     * * `resource:organizations/123456` to find {{iam_name_short}} policy
-     * bindings
+     * * `resource:organizations/123456` to find IAM policy bindings
      *   that are set on "organizations/123456".
      * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-     *   find {{iam_name_short}} policy bindings that are set on the project named
-     *   "myproject".
-     * * `Important` to find {{iam_name_short}} policy bindings that contain
-     * "Important" as a
+     *   find IAM policy bindings that are set on the project named "myproject".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
      *   word in any of the searchable fields (except for the included
      *   permissions).
      * * `resource:(instance1 OR instance2) policy:amy` to find
-     *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-     *   or "instance2" and also specify user "amy".
-     * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify the
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
+     * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
      *   Compute Admin role.
-     * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-     * contain the
+     * * `memberTypes:user` to find IAM policy bindings that contain the
      *   principal type "user".
      * 
* * 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; @@ -1230,71 +1124,59 @@ 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)
      * for more information. If not specified or empty, it will search all the
-     * {{iam_name_short}} policies within the specified `scope`. Note that the
-     * query string is compared against each {{iam_name_short}} policy binding,
-     * including its principals, roles, and {{iam_name_short}} conditions. The
-     * returned {{iam_name_short}} policies will only contain the bindings that
-     * match your query. To learn more about the {{iam_name_short}} policy
-     * structure, see the [{{iam_name_short}} policy
+     * IAM policies within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its principals,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see the [IAM policy
      * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
      * Examples:
-     * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-     * specify user
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
      *   "amy@gmail.com".
-     * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
      *   the Compute Admin role.
-     * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-     * "comp" as a
+     * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
      *   prefix of any word in the binding.
-     * * `policy.role.permissions:storage.buckets.update` to find
-     * {{iam_name_short}} policy
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
      *   bindings that specify a role containing "storage.buckets.update"
      *   permission. Note that if callers don't have `iam.roles.get` access to a
      *   role's included permissions, policy bindings that specify this role will
      *   be dropped from the search results.
-     * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-     * that specify a
+     * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
      *   role containing "upd" as a prefix of any word in the role permission.
      *   Note that if callers don't have `iam.roles.get` access to a role's
      *   included permissions, policy bindings that specify this role will be
      *   dropped from the search results.
-     * * `resource:organizations/123456` to find {{iam_name_short}} policy
-     * bindings
+     * * `resource:organizations/123456` to find IAM policy bindings
      *   that are set on "organizations/123456".
      * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-     *   find {{iam_name_short}} policy bindings that are set on the project named
-     *   "myproject".
-     * * `Important` to find {{iam_name_short}} policy bindings that contain
-     * "Important" as a
+     *   find IAM policy bindings that are set on the project named "myproject".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
      *   word in any of the searchable fields (except for the included
      *   permissions).
      * * `resource:(instance1 OR instance2) policy:amy` to find
-     *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-     *   or "instance2" and also specify user "amy".
-     * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify the
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
+     * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
      *   Compute Admin role.
-     * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-     * contain the
+     * * `memberTypes:user` to find IAM policy bindings that contain the
      *   principal type "user".
      * 
* * 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 { @@ -1302,230 +1184,186 @@ 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)
      * for more information. If not specified or empty, it will search all the
-     * {{iam_name_short}} policies within the specified `scope`. Note that the
-     * query string is compared against each {{iam_name_short}} policy binding,
-     * including its principals, roles, and {{iam_name_short}} conditions. The
-     * returned {{iam_name_short}} policies will only contain the bindings that
-     * match your query. To learn more about the {{iam_name_short}} policy
-     * structure, see the [{{iam_name_short}} policy
+     * IAM policies within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its principals,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see the [IAM policy
      * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
      * Examples:
-     * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-     * specify user
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
      *   "amy@gmail.com".
-     * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
      *   the Compute Admin role.
-     * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-     * "comp" as a
+     * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
      *   prefix of any word in the binding.
-     * * `policy.role.permissions:storage.buckets.update` to find
-     * {{iam_name_short}} policy
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
      *   bindings that specify a role containing "storage.buckets.update"
      *   permission. Note that if callers don't have `iam.roles.get` access to a
      *   role's included permissions, policy bindings that specify this role will
      *   be dropped from the search results.
-     * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-     * that specify a
+     * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
      *   role containing "upd" as a prefix of any word in the role permission.
      *   Note that if callers don't have `iam.roles.get` access to a role's
      *   included permissions, policy bindings that specify this role will be
      *   dropped from the search results.
-     * * `resource:organizations/123456` to find {{iam_name_short}} policy
-     * bindings
+     * * `resource:organizations/123456` to find IAM policy bindings
      *   that are set on "organizations/123456".
      * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-     *   find {{iam_name_short}} policy bindings that are set on the project named
-     *   "myproject".
-     * * `Important` to find {{iam_name_short}} policy bindings that contain
-     * "Important" as a
+     *   find IAM policy bindings that are set on the project named "myproject".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
      *   word in any of the searchable fields (except for the included
      *   permissions).
      * * `resource:(instance1 OR instance2) policy:amy` to find
-     *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-     *   or "instance2" and also specify user "amy".
-     * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify the
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
+     * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
      *   Compute Admin role.
-     * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-     * contain the
+     * * `memberTypes:user` to find IAM policy bindings that contain the
      *   principal type "user".
      * 
* * 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)
      * for more information. If not specified or empty, it will search all the
-     * {{iam_name_short}} policies within the specified `scope`. Note that the
-     * query string is compared against each {{iam_name_short}} policy binding,
-     * including its principals, roles, and {{iam_name_short}} conditions. The
-     * returned {{iam_name_short}} policies will only contain the bindings that
-     * match your query. To learn more about the {{iam_name_short}} policy
-     * structure, see the [{{iam_name_short}} policy
+     * IAM policies within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its principals,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see the [IAM policy
      * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
      * Examples:
-     * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-     * specify user
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
      *   "amy@gmail.com".
-     * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
      *   the Compute Admin role.
-     * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-     * "comp" as a
+     * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
      *   prefix of any word in the binding.
-     * * `policy.role.permissions:storage.buckets.update` to find
-     * {{iam_name_short}} policy
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
      *   bindings that specify a role containing "storage.buckets.update"
      *   permission. Note that if callers don't have `iam.roles.get` access to a
      *   role's included permissions, policy bindings that specify this role will
      *   be dropped from the search results.
-     * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-     * that specify a
+     * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
      *   role containing "upd" as a prefix of any word in the role permission.
      *   Note that if callers don't have `iam.roles.get` access to a role's
      *   included permissions, policy bindings that specify this role will be
      *   dropped from the search results.
-     * * `resource:organizations/123456` to find {{iam_name_short}} policy
-     * bindings
+     * * `resource:organizations/123456` to find IAM policy bindings
      *   that are set on "organizations/123456".
      * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-     *   find {{iam_name_short}} policy bindings that are set on the project named
-     *   "myproject".
-     * * `Important` to find {{iam_name_short}} policy bindings that contain
-     * "Important" as a
+     *   find IAM policy bindings that are set on the project named "myproject".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
      *   word in any of the searchable fields (except for the included
      *   permissions).
      * * `resource:(instance1 OR instance2) policy:amy` to find
-     *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-     *   or "instance2" and also specify user "amy".
-     * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify the
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
+     * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
      *   Compute Admin role.
-     * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-     * contain the
+     * * `memberTypes:user` to find IAM policy bindings that contain the
      *   principal type "user".
      * 
* * 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)
      * for more information. If not specified or empty, it will search all the
-     * {{iam_name_short}} policies within the specified `scope`. Note that the
-     * query string is compared against each {{iam_name_short}} policy binding,
-     * including its principals, roles, and {{iam_name_short}} conditions. The
-     * returned {{iam_name_short}} policies will only contain the bindings that
-     * match your query. To learn more about the {{iam_name_short}} policy
-     * structure, see the [{{iam_name_short}} policy
+     * IAM policies within the specified `scope`. Note that the query string is
+     * compared against each Cloud IAM policy binding, including its principals,
+     * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+     * contain the bindings that match your query. To learn more about the IAM
+     * policy structure, see the [IAM policy
      * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
      * Examples:
-     * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-     * specify user
+     * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
      *   "amy@gmail.com".
-     * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify
+     * * `policy:roles/compute.admin` to find IAM policy bindings that specify
      *   the Compute Admin role.
-     * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-     * "comp" as a
+     * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
      *   prefix of any word in the binding.
-     * * `policy.role.permissions:storage.buckets.update` to find
-     * {{iam_name_short}} policy
+     * * `policy.role.permissions:storage.buckets.update` to find IAM policy
      *   bindings that specify a role containing "storage.buckets.update"
      *   permission. Note that if callers don't have `iam.roles.get` access to a
      *   role's included permissions, policy bindings that specify this role will
      *   be dropped from the search results.
-     * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-     * that specify a
+     * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
      *   role containing "upd" as a prefix of any word in the role permission.
      *   Note that if callers don't have `iam.roles.get` access to a role's
      *   included permissions, policy bindings that specify this role will be
      *   dropped from the search results.
-     * * `resource:organizations/123456` to find {{iam_name_short}} policy
-     * bindings
+     * * `resource:organizations/123456` to find IAM policy bindings
      *   that are set on "organizations/123456".
      * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-     *   find {{iam_name_short}} policy bindings that are set on the project named
-     *   "myproject".
-     * * `Important` to find {{iam_name_short}} policy bindings that contain
-     * "Important" as a
+     *   find IAM policy bindings that are set on the project named "myproject".
+     * * `Important` to find IAM policy bindings that contain "Important" as a
      *   word in any of the searchable fields (except for the included
      *   permissions).
      * * `resource:(instance1 OR instance2) policy:amy` to find
-     *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-     *   or "instance2" and also specify user "amy".
-     * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-     * that specify the
+     *   IAM policy bindings that are set on resources "instance1" or
+     *   "instance2" and also specify user "amy".
+     * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
      *   Compute Admin role.
-     * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-     * contain the
+     * * `memberTypes:user` to find IAM policy bindings that contain the
      *   principal type "user".
      * 
* * 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 @@ -1533,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; @@ -1578,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; @@ -1603,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 { @@ -1628,160 +1455,140 @@ 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_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * 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_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * 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_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * 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. */ @@ -1789,155 +1596,140 @@ public java.lang.String getAssetTypes(int index) { return assetTypes_.get(index); } /** - * - * *
-     * Optional. A list of asset types that the {{iam_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * 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_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * 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_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * 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_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * 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_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * repeated string asset_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1947,35 +1739,32 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
-     * Optional. A list of asset types that the {{iam_name_short}} policies are
-     * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-     * to asset type starts with "compute.googleapis.com".
-     * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-     * ends with "Instance".
-     * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-     * type contains "Instance".
+     * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+     * starts with "compute.googleapis.com".
+     * * ".*Instance" snapshots IAM policies attached to asset type ends with
+     * "Instance".
+     * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+     * "Instance".
      * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
      * regular expression syntax. If the regular expression does not match any
      * supported asset type, an INVALID_ARGUMENT error will be returned.
      * 
* * 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(); @@ -1984,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
@@ -2000,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; @@ -2015,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
@@ -2031,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 { @@ -2046,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
@@ -2062,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
@@ -2092,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
@@ -2118,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); } @@ -2144,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(); } @@ -2158,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2193,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 53% 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 736705b1b141..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_name_short}} 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_name_short}} 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,294 +40,242 @@ 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)
    * for more information. If not specified or empty, it will search all the
-   * {{iam_name_short}} policies within the specified `scope`. Note that the
-   * query string is compared against each {{iam_name_short}} policy binding,
-   * including its principals, roles, and {{iam_name_short}} conditions. The
-   * returned {{iam_name_short}} policies will only contain the bindings that
-   * match your query. To learn more about the {{iam_name_short}} policy
-   * structure, see the [{{iam_name_short}} policy
+   * IAM policies within the specified `scope`. Note that the query string is
+   * compared against each Cloud IAM policy binding, including its principals,
+   * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+   * contain the bindings that match your query. To learn more about the IAM
+   * policy structure, see the [IAM policy
    * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
    * Examples:
-   * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-   * specify user
+   * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
    *   "amy@gmail.com".
-   * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-   * that specify
+   * * `policy:roles/compute.admin` to find IAM policy bindings that specify
    *   the Compute Admin role.
-   * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-   * "comp" as a
+   * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
    *   prefix of any word in the binding.
-   * * `policy.role.permissions:storage.buckets.update` to find
-   * {{iam_name_short}} policy
+   * * `policy.role.permissions:storage.buckets.update` to find IAM policy
    *   bindings that specify a role containing "storage.buckets.update"
    *   permission. Note that if callers don't have `iam.roles.get` access to a
    *   role's included permissions, policy bindings that specify this role will
    *   be dropped from the search results.
-   * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-   * that specify a
+   * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
    *   role containing "upd" as a prefix of any word in the role permission.
    *   Note that if callers don't have `iam.roles.get` access to a role's
    *   included permissions, policy bindings that specify this role will be
    *   dropped from the search results.
-   * * `resource:organizations/123456` to find {{iam_name_short}} policy
-   * bindings
+   * * `resource:organizations/123456` to find IAM policy bindings
    *   that are set on "organizations/123456".
    * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-   *   find {{iam_name_short}} policy bindings that are set on the project named
-   *   "myproject".
-   * * `Important` to find {{iam_name_short}} policy bindings that contain
-   * "Important" as a
+   *   find IAM policy bindings that are set on the project named "myproject".
+   * * `Important` to find IAM policy bindings that contain "Important" as a
    *   word in any of the searchable fields (except for the included
    *   permissions).
    * * `resource:(instance1 OR instance2) policy:amy` to find
-   *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-   *   or "instance2" and also specify user "amy".
-   * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-   * that specify the
+   *   IAM policy bindings that are set on resources "instance1" or
+   *   "instance2" and also specify user "amy".
+   * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
    *   Compute Admin role.
-   * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-   * contain the
+   * * `memberTypes:user` to find IAM policy bindings that contain the
    *   principal type "user".
    * 
* * 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)
    * for more information. If not specified or empty, it will search all the
-   * {{iam_name_short}} policies within the specified `scope`. Note that the
-   * query string is compared against each {{iam_name_short}} policy binding,
-   * including its principals, roles, and {{iam_name_short}} conditions. The
-   * returned {{iam_name_short}} policies will only contain the bindings that
-   * match your query. To learn more about the {{iam_name_short}} policy
-   * structure, see the [{{iam_name_short}} policy
+   * IAM policies within the specified `scope`. Note that the query string is
+   * compared against each Cloud IAM policy binding, including its principals,
+   * roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+   * contain the bindings that match your query. To learn more about the IAM
+   * policy structure, see the [IAM policy
    * documentation](https://cloud.google.com/iam/help/allow-policies/structure).
    * Examples:
-   * * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-   * specify user
+   * * `policy:amy@gmail.com` to find IAM policy bindings that specify user
    *   "amy@gmail.com".
-   * * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-   * that specify
+   * * `policy:roles/compute.admin` to find IAM policy bindings that specify
    *   the Compute Admin role.
-   * * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-   * "comp" as a
+   * * `policy:comp*` to find IAM policy bindings that contain "comp" as a
    *   prefix of any word in the binding.
-   * * `policy.role.permissions:storage.buckets.update` to find
-   * {{iam_name_short}} policy
+   * * `policy.role.permissions:storage.buckets.update` to find IAM policy
    *   bindings that specify a role containing "storage.buckets.update"
    *   permission. Note that if callers don't have `iam.roles.get` access to a
    *   role's included permissions, policy bindings that specify this role will
    *   be dropped from the search results.
-   * * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-   * that specify a
+   * * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
    *   role containing "upd" as a prefix of any word in the role permission.
    *   Note that if callers don't have `iam.roles.get` access to a role's
    *   included permissions, policy bindings that specify this role will be
    *   dropped from the search results.
-   * * `resource:organizations/123456` to find {{iam_name_short}} policy
-   * bindings
+   * * `resource:organizations/123456` to find IAM policy bindings
    *   that are set on "organizations/123456".
    * * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-   *   find {{iam_name_short}} policy bindings that are set on the project named
-   *   "myproject".
-   * * `Important` to find {{iam_name_short}} policy bindings that contain
-   * "Important" as a
+   *   find IAM policy bindings that are set on the project named "myproject".
+   * * `Important` to find IAM policy bindings that contain "Important" as a
    *   word in any of the searchable fields (except for the included
    *   permissions).
    * * `resource:(instance1 OR instance2) policy:amy` to find
-   *   {{iam_name_short}} policy bindings that are set on resources "instance1"
-   *   or "instance2" and also specify user "amy".
-   * * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-   * that specify the
+   *   IAM policy bindings that are set on resources "instance1" or
+   *   "instance2" and also specify user "amy".
+   * * `roles:roles/compute.admin` to find IAM policy bindings that specify the
    *   Compute Admin role.
-   * * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-   * contain the
+   * * `memberTypes:user` to find IAM policy bindings that contain the
    *   principal type "user".
    * 
* * 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_name_short}} policies are
-   * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-   * to asset type starts with "compute.googleapis.com".
-   * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-   * ends with "Instance".
-   * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-   * type contains "Instance".
+   * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+   * starts with "compute.googleapis.com".
+   * * ".*Instance" snapshots IAM policies attached to asset type ends with
+   * "Instance".
+   * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+   * "Instance".
    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * 
* * 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_name_short}} policies are
-   * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-   * to asset type starts with "compute.googleapis.com".
-   * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-   * ends with "Instance".
-   * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-   * type contains "Instance".
+   * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+   * starts with "compute.googleapis.com".
+   * * ".*Instance" snapshots IAM policies attached to asset type ends with
+   * "Instance".
+   * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+   * "Instance".
    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * 
* * 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_name_short}} policies are
-   * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-   * to asset type starts with "compute.googleapis.com".
-   * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-   * ends with "Instance".
-   * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-   * type contains "Instance".
+   * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+   * starts with "compute.googleapis.com".
+   * * ".*Instance" snapshots IAM policies attached to asset type ends with
+   * "Instance".
+   * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+   * "Instance".
    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * 
* * 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_name_short}} policies are
-   * attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-   * to asset type starts with "compute.googleapis.com".
-   * * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-   * ends with "Instance".
-   * * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-   * type contains "Instance".
+   * * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+   * starts with "compute.googleapis.com".
+   * * ".*Instance" snapshots IAM policies attached to asset type ends with
+   * "Instance".
+   * * ".*Instance.*" snapshots IAM policies attached to asset type contains
+   * "Instance".
    * See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
    * regular expression syntax. If the regular expression does not match any
    * supported asset type, an INVALID_ARGUMENT error will be returned.
    * 
* * 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
@@ -359,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
@@ -380,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 63% 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 7bca1ac00e3b..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_name_short}} policies response.
+ * 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,39 +26,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 {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -86,28 +64,22 @@ public java.util.List getResult return results_; } /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * 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 {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -117,12 +89,9 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -132,26 +101,22 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) { return results_.get(index); } /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * 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
@@ -159,7 +124,6 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -168,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
@@ -184,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 { @@ -201,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +176,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 < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -230,7 +194,8 @@ 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_); @@ -243,16 +208,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.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; } @@ -276,136 +242,129 @@ 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_name_short}} policies response.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,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_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 @@ -443,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)) { @@ -464,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; @@ -504,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()) { @@ -524,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_); } @@ -563,33 +518,30 @@ 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) { @@ -599,33 +551,24 @@ 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -638,12 +581,9 @@ public java.util.List getResult } } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -656,12 +596,9 @@ public int getResultsCount() { } } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -674,17 +611,15 @@ public com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index) { } } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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(); @@ -698,12 +633,9 @@ public Builder setResults(int index, com.google.cloud.asset.v1.IamPolicySearchRe return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -720,12 +652,9 @@ public Builder setResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -744,17 +673,15 @@ public Builder addResults(com.google.cloud.asset.v1.IamPolicySearchResult value) return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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(); @@ -768,12 +695,9 @@ public Builder addResults(int index, com.google.cloud.asset.v1.IamPolicySearchRe return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -790,12 +714,9 @@ public Builder addResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -812,12 +733,9 @@ public Builder addResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -826,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); @@ -834,12 +753,9 @@ public Builder addAllResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -855,12 +771,9 @@ public Builder clearResults() { return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; @@ -876,50 +789,42 @@ public Builder removeResults(int index) { return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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 { @@ -927,63 +832,52 @@ public com.google.cloud.asset.v1.IamPolicySearchResultOrBuilder getResultsOrBuil } } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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_; @@ -991,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
@@ -1000,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; @@ -1015,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
@@ -1024,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 { @@ -1039,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
@@ -1048,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
@@ -1071,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
@@ -1090,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); } @@ -1116,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(); } @@ -1130,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1165,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 52% 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 c2e7da52d23f..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,93 +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; -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 {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; */ com.google.cloud.asset.v1.IamPolicySearchResult getResults(int index); /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; */ int getResultsCount(); /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1.IamPolicySearchResult results = 1; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * 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
@@ -95,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
@@ -109,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 69% 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 eb3f6b8cceb1..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,39 +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; } - - 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:
@@ -90,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 @@ -99,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:
@@ -122,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 { @@ -141,38 +117,32 @@ 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)
    * for more information. If not specified or empty, it will search all the
    * resources within the specified `scope`.
    * Examples:
-   * * `name:Important` to find {{gcp_name}} resources whose name contains
+   * * `name:Important` to find Cloud resources whose name contains
    *   "Important" as a word.
-   * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+   * * `name=Important` to find the Cloud resource whose name is exactly
    *   "Important".
-   * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+   * * `displayName:Impor*` to find Cloud resources whose display name
    *   contains "Impor" as a prefix of any word in the field.
-   * * `location:us-west*` to find {{gcp_name}} resources whose location
-   * contains both
+   * * `location:us-west*` to find Cloud resources whose location contains both
    *   "us" and "west" as prefixes.
-   * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-   * as
+   * * `labels:prod` to find Cloud resources whose labels contain "prod" as
    *   a key or value.
-   * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+   * * `labels.env:prod` to find Cloud resources that have a label "env"
    *   and its value is "prod".
-   * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-   * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-   * customer-managed
+   * * `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 {{gcp_name}} resources encrypted with
-   * customer-managed
+   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    *   encryption keys whose name contains the word "key".
-   * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+   * * `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
    *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -180,34 +150,27 @@ public com.google.protobuf.ByteString getScopeBytes() {
    *   compute instances that have relationships with "instance-group-1" in the
    *   compute instance group resource name, for relationship type
    *   "INSTANCE_TO_INSTANCEGROUP".
-   * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-   * "ACTIVE" as a
+   * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
    *   word.
-   * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-   * contain
+   * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
    *   "ACTIVE" as a word.
-   * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-   * before
+   * * `createTime<1609459200` to find Cloud resources that were created before
    *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
    *   "2021-01-01 00:00:00 UTC" in seconds.
-   * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-   * after
+   * * `updateTime>1609459200` to find Cloud resources that were updated after
    *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
    *   "2021-01-01 00:00:00 UTC" in seconds.
-   * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-   * word
+   * * `Important` to find Cloud resources that contain "Important" as a word
    *   in any of the searchable fields.
-   * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-   * of any
+   * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
    *   word in any of the searchable fields.
-   * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+   * * `Important location:(us-west1 OR global)` to find Cloud
    *   resources that contain "Important" as a word in any of the searchable
    *   fields and are also located in the "us-west1" region or the "global"
    *   location.
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ @java.lang.Override @@ -216,45 +179,40 @@ 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)
    * for more information. If not specified or empty, it will search all the
    * resources within the specified `scope`.
    * Examples:
-   * * `name:Important` to find {{gcp_name}} resources whose name contains
+   * * `name:Important` to find Cloud resources whose name contains
    *   "Important" as a word.
-   * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+   * * `name=Important` to find the Cloud resource whose name is exactly
    *   "Important".
-   * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+   * * `displayName:Impor*` to find Cloud resources whose display name
    *   contains "Impor" as a prefix of any word in the field.
-   * * `location:us-west*` to find {{gcp_name}} resources whose location
-   * contains both
+   * * `location:us-west*` to find Cloud resources whose location contains both
    *   "us" and "west" as prefixes.
-   * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-   * as
+   * * `labels:prod` to find Cloud resources whose labels contain "prod" as
    *   a key or value.
-   * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+   * * `labels.env:prod` to find Cloud resources that have a label "env"
    *   and its value is "prod".
-   * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-   * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-   * customer-managed
+   * * `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 {{gcp_name}} resources encrypted with
-   * customer-managed
+   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    *   encryption keys whose name contains the word "key".
-   * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+   * * `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
    *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -262,42 +220,37 @@ public java.lang.String getQuery() {
    *   compute instances that have relationships with "instance-group-1" in the
    *   compute instance group resource name, for relationship type
    *   "INSTANCE_TO_INSTANCEGROUP".
-   * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-   * "ACTIVE" as a
+   * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
    *   word.
-   * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-   * contain
+   * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
    *   "ACTIVE" as a word.
-   * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-   * before
+   * * `createTime<1609459200` to find Cloud resources that were created before
    *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
    *   "2021-01-01 00:00:00 UTC" in seconds.
-   * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-   * after
+   * * `updateTime>1609459200` to find Cloud resources that were updated after
    *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
    *   "2021-01-01 00:00:00 UTC" in seconds.
-   * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-   * word
+   * * `Important` to find Cloud resources that contain "Important" as a word
    *   in any of the searchable fields.
-   * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-   * of any
+   * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
    *   word in any of the searchable fields.
-   * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+   * * `Important location:(us-west1 OR global)` to find Cloud
    *   resources that contain "Important" as a word in any of the searchable
    *   fields and are also located in the "us-west1" region or the "global"
    *   location.
    * 
* * 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 { @@ -308,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
@@ -325,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
@@ -349,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
@@ -373,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. */ @@ -381,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
@@ -398,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 @@ -431,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 @@ -450,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 { @@ -486,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
@@ -511,7 +445,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -520,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
@@ -552,15 +484,16 @@ 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 { @@ -571,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
@@ -606,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 @@ -616,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
@@ -651,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 @@ -661,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
@@ -696,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() { @@ -705,7 +627,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -717,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_); } @@ -763,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_); @@ -772,7 +695,8 @@ 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; @@ -782,23 +706,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.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; @@ -835,135 +765,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -989,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 @@ -1010,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_; @@ -1036,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; @@ -1076,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(); @@ -1136,56 +1057,50 @@ 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) { @@ -1195,17 +1110,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
+     * 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:
@@ -1216,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; @@ -1231,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:
@@ -1247,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 { @@ -1262,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:
@@ -1278,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:
@@ -1308,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:
@@ -1334,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; @@ -1351,38 +1250,32 @@ 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)
      * for more information. If not specified or empty, it will search all the
      * resources within the specified `scope`.
      * Examples:
-     * * `name:Important` to find {{gcp_name}} resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+     * * `name=Important` to find the Cloud resource whose name is exactly
      *   "Important".
-     * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+     * * `displayName:Impor*` to find Cloud resources whose display name
      *   contains "Impor" as a prefix of any word in the field.
-     * * `location:us-west*` to find {{gcp_name}} resources whose location
-     * contains both
+     * * `location:us-west*` to find Cloud resources whose location contains both
      *   "us" and "west" as prefixes.
-     * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-     * as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-     * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-     * customer-managed
+     * * `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 {{gcp_name}} resources encrypted with
-     * customer-managed
+     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
      *   encryption keys whose name contains the word "key".
-     * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+     * * `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
      *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -1390,40 +1283,34 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) {
      *   compute instances that have relationships with "instance-group-1" in the
      *   compute instance group resource name, for relationship type
      *   "INSTANCE_TO_INSTANCEGROUP".
-     * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-     * "ACTIVE" as a
+     * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
      *   word.
-     * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-     * contain
+     * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
      *   "ACTIVE" as a word.
-     * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-     * before
+     * * `createTime<1609459200` to find Cloud resources that were created before
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-     * after
+     * * `updateTime>1609459200` to find Cloud resources that were updated after
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-     * word
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-     * of any
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
      *   word in any of the searchable fields.
-     * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+     * * `Important location:(us-west1 OR global)` to find Cloud
      *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
      * 
* * 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; @@ -1432,38 +1319,32 @@ 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)
      * for more information. If not specified or empty, it will search all the
      * resources within the specified `scope`.
      * Examples:
-     * * `name:Important` to find {{gcp_name}} resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+     * * `name=Important` to find the Cloud resource whose name is exactly
      *   "Important".
-     * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+     * * `displayName:Impor*` to find Cloud resources whose display name
      *   contains "Impor" as a prefix of any word in the field.
-     * * `location:us-west*` to find {{gcp_name}} resources whose location
-     * contains both
+     * * `location:us-west*` to find Cloud resources whose location contains both
      *   "us" and "west" as prefixes.
-     * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-     * as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-     * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-     * customer-managed
+     * * `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 {{gcp_name}} resources encrypted with
-     * customer-managed
+     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
      *   encryption keys whose name contains the word "key".
-     * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+     * * `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
      *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -1471,41 +1352,36 @@ public java.lang.String getQuery() {
      *   compute instances that have relationships with "instance-group-1" in the
      *   compute instance group resource name, for relationship type
      *   "INSTANCE_TO_INSTANCEGROUP".
-     * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-     * "ACTIVE" as a
+     * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
      *   word.
-     * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-     * contain
+     * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
      *   "ACTIVE" as a word.
-     * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-     * before
+     * * `createTime<1609459200` to find Cloud resources that were created before
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-     * after
+     * * `updateTime>1609459200` to find Cloud resources that were updated after
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-     * word
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-     * of any
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
      *   word in any of the searchable fields.
-     * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+     * * `Important location:(us-west1 OR global)` to find Cloud
      *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
      * 
* * 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 { @@ -1513,38 +1389,32 @@ 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)
      * for more information. If not specified or empty, it will search all the
      * resources within the specified `scope`.
      * Examples:
-     * * `name:Important` to find {{gcp_name}} resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+     * * `name=Important` to find the Cloud resource whose name is exactly
      *   "Important".
-     * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+     * * `displayName:Impor*` to find Cloud resources whose display name
      *   contains "Impor" as a prefix of any word in the field.
-     * * `location:us-west*` to find {{gcp_name}} resources whose location
-     * contains both
+     * * `location:us-west*` to find Cloud resources whose location contains both
      *   "us" and "west" as prefixes.
-     * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-     * as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-     * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-     * customer-managed
+     * * `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 {{gcp_name}} resources encrypted with
-     * customer-managed
+     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
      *   encryption keys whose name contains the word "key".
-     * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+     * * `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
      *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -1552,79 +1422,67 @@ public com.google.protobuf.ByteString getQueryBytes() {
      *   compute instances that have relationships with "instance-group-1" in the
      *   compute instance group resource name, for relationship type
      *   "INSTANCE_TO_INSTANCEGROUP".
-     * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-     * "ACTIVE" as a
+     * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
      *   word.
-     * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-     * contain
+     * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
      *   "ACTIVE" as a word.
-     * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-     * before
+     * * `createTime<1609459200` to find Cloud resources that were created before
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-     * after
+     * * `updateTime>1609459200` to find Cloud resources that were updated after
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-     * word
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-     * of any
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
      *   word in any of the searchable fields.
-     * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+     * * `Important location:(us-west1 OR global)` to find Cloud
      *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
      * 
* * 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)
      * for more information. If not specified or empty, it will search all the
      * resources within the specified `scope`.
      * Examples:
-     * * `name:Important` to find {{gcp_name}} resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+     * * `name=Important` to find the Cloud resource whose name is exactly
      *   "Important".
-     * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+     * * `displayName:Impor*` to find Cloud resources whose display name
      *   contains "Impor" as a prefix of any word in the field.
-     * * `location:us-west*` to find {{gcp_name}} resources whose location
-     * contains both
+     * * `location:us-west*` to find Cloud resources whose location contains both
      *   "us" and "west" as prefixes.
-     * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-     * as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-     * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-     * customer-managed
+     * * `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 {{gcp_name}} resources encrypted with
-     * customer-managed
+     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
      *   encryption keys whose name contains the word "key".
-     * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+     * * `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
      *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -1632,75 +1490,62 @@ public Builder setQuery(java.lang.String value) {
      *   compute instances that have relationships with "instance-group-1" in the
      *   compute instance group resource name, for relationship type
      *   "INSTANCE_TO_INSTANCEGROUP".
-     * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-     * "ACTIVE" as a
+     * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
      *   word.
-     * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-     * contain
+     * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
      *   "ACTIVE" as a word.
-     * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-     * before
+     * * `createTime<1609459200` to find Cloud resources that were created before
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-     * after
+     * * `updateTime>1609459200` to find Cloud resources that were updated after
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-     * word
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-     * of any
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
      *   word in any of the searchable fields.
-     * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+     * * `Important location:(us-west1 OR global)` to find Cloud
      *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
      * 
* * 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)
      * for more information. If not specified or empty, it will search all the
      * resources within the specified `scope`.
      * Examples:
-     * * `name:Important` to find {{gcp_name}} resources whose name contains
+     * * `name:Important` to find Cloud resources whose name contains
      *   "Important" as a word.
-     * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+     * * `name=Important` to find the Cloud resource whose name is exactly
      *   "Important".
-     * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+     * * `displayName:Impor*` to find Cloud resources whose display name
      *   contains "Impor" as a prefix of any word in the field.
-     * * `location:us-west*` to find {{gcp_name}} resources whose location
-     * contains both
+     * * `location:us-west*` to find Cloud resources whose location contains both
      *   "us" and "west" as prefixes.
-     * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-     * as
+     * * `labels:prod` to find Cloud resources whose labels contain "prod" as
      *   a key or value.
-     * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+     * * `labels.env:prod` to find Cloud resources that have a label "env"
      *   and its value is "prod".
-     * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-     * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-     * customer-managed
+     * * `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 {{gcp_name}} resources encrypted with
-     * customer-managed
+     * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
      *   encryption keys whose name contains the word "key".
-     * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+     * * `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
      *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -1708,63 +1553,53 @@ public Builder clearQuery() {
      *   compute instances that have relationships with "instance-group-1" in the
      *   compute instance group resource name, for relationship type
      *   "INSTANCE_TO_INSTANCEGROUP".
-     * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-     * "ACTIVE" as a
+     * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
      *   word.
-     * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-     * contain
+     * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
      *   "ACTIVE" as a word.
-     * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-     * before
+     * * `createTime<1609459200` to find Cloud resources that were created before
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-     * after
+     * * `updateTime>1609459200` to find Cloud resources that were updated after
      *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
      *   "2021-01-01 00:00:00 UTC" in seconds.
-     * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-     * word
+     * * `Important` to find Cloud resources that contain "Important" as a word
      *   in any of the searchable fields.
-     * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-     * of any
+     * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
      *   word in any of the searchable fields.
-     * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+     * * `Important location:(us-west1 OR global)` to find Cloud
      *   resources that contain "Important" as a word in any of the searchable
      *   fields and are also located in the "us-west1" region or the "global"
      *   location.
      * 
* * 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
@@ -1777,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
@@ -1801,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
@@ -1825,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. */ @@ -1833,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
@@ -1850,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
@@ -1875,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
@@ -1907,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
@@ -1938,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
@@ -1966,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() { @@ -1976,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
@@ -1993,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 @@ -2029,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; @@ -2074,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; @@ -2099,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 { @@ -2124,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; @@ -2195,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
@@ -2220,13 +2013,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -2235,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
@@ -2260,14 +2051,15 @@ 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 { @@ -2275,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
@@ -2300,26 +2090,24 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * 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
@@ -2339,22 +2127,19 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * 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
@@ -2374,16 +2159,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; @@ -2391,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
@@ -2431,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
@@ -2475,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() { @@ -2488,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
@@ -2523,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) { @@ -2540,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
@@ -2575,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(); @@ -2589,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
@@ -2624,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; } @@ -2643,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
@@ -2678,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) { @@ -2693,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
@@ -2728,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
@@ -2772,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
@@ -2818,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); } @@ -2849,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(); } @@ -2863,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2898,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 69% 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 c316d34f80fd..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,44 +38,38 @@ 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)
    * for more information. If not specified or empty, it will search all the
    * resources within the specified `scope`.
    * Examples:
-   * * `name:Important` to find {{gcp_name}} resources whose name contains
+   * * `name:Important` to find Cloud resources whose name contains
    *   "Important" as a word.
-   * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+   * * `name=Important` to find the Cloud resource whose name is exactly
    *   "Important".
-   * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+   * * `displayName:Impor*` to find Cloud resources whose display name
    *   contains "Impor" as a prefix of any word in the field.
-   * * `location:us-west*` to find {{gcp_name}} resources whose location
-   * contains both
+   * * `location:us-west*` to find Cloud resources whose location contains both
    *   "us" and "west" as prefixes.
-   * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-   * as
+   * * `labels:prod` to find Cloud resources whose labels contain "prod" as
    *   a key or value.
-   * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+   * * `labels.env:prod` to find Cloud resources that have a label "env"
    *   and its value is "prod".
-   * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-   * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-   * customer-managed
+   * * `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 {{gcp_name}} resources encrypted with
-   * customer-managed
+   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    *   encryption keys whose name contains the word "key".
-   * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+   * * `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
    *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -106,70 +77,57 @@ public interface SearchAllResourcesRequestOrBuilder
    *   compute instances that have relationships with "instance-group-1" in the
    *   compute instance group resource name, for relationship type
    *   "INSTANCE_TO_INSTANCEGROUP".
-   * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-   * "ACTIVE" as a
+   * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
    *   word.
-   * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-   * contain
+   * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
    *   "ACTIVE" as a word.
-   * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-   * before
+   * * `createTime<1609459200` to find Cloud resources that were created before
    *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
    *   "2021-01-01 00:00:00 UTC" in seconds.
-   * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-   * after
+   * * `updateTime>1609459200` to find Cloud resources that were updated after
    *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
    *   "2021-01-01 00:00:00 UTC" in seconds.
-   * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-   * word
+   * * `Important` to find Cloud resources that contain "Important" as a word
    *   in any of the searchable fields.
-   * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-   * of any
+   * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
    *   word in any of the searchable fields.
-   * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+   * * `Important location:(us-west1 OR global)` to find Cloud
    *   resources that contain "Important" as a word in any of the searchable
    *   fields and are also located in the "us-west1" region or the "global"
    *   location.
    * 
* * 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)
    * for more information. If not specified or empty, it will search all the
    * resources within the specified `scope`.
    * Examples:
-   * * `name:Important` to find {{gcp_name}} resources whose name contains
+   * * `name:Important` to find Cloud resources whose name contains
    *   "Important" as a word.
-   * * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+   * * `name=Important` to find the Cloud resource whose name is exactly
    *   "Important".
-   * * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+   * * `displayName:Impor*` to find Cloud resources whose display name
    *   contains "Impor" as a prefix of any word in the field.
-   * * `location:us-west*` to find {{gcp_name}} resources whose location
-   * contains both
+   * * `location:us-west*` to find Cloud resources whose location contains both
    *   "us" and "west" as prefixes.
-   * * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-   * as
+   * * `labels:prod` to find Cloud resources whose labels contain "prod" as
    *   a key or value.
-   * * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+   * * `labels.env:prod` to find Cloud resources that have a label "env"
    *   and its value is "prod".
-   * * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-   * * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-   * customer-managed
+   * * `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 {{gcp_name}} resources encrypted with
-   * customer-managed
+   * * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
    *   encryption keys whose name contains the word "key".
-   * * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+   * * `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
    *   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -177,44 +135,36 @@ public interface SearchAllResourcesRequestOrBuilder
    *   compute instances that have relationships with "instance-group-1" in the
    *   compute instance group resource name, for relationship type
    *   "INSTANCE_TO_INSTANCEGROUP".
-   * * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-   * "ACTIVE" as a
+   * * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
    *   word.
-   * * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-   * contain
+   * * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
    *   "ACTIVE" as a word.
-   * * `createTime<1609459200` to find {{gcp_name}} resources that were created
-   * before
+   * * `createTime<1609459200` to find Cloud resources that were created before
    *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
    *   "2021-01-01 00:00:00 UTC" in seconds.
-   * * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-   * after
+   * * `updateTime>1609459200` to find Cloud resources that were updated after
    *   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
    *   "2021-01-01 00:00:00 UTC" in seconds.
-   * * `Important` to find {{gcp_name}} resources that contain "Important" as a
-   * word
+   * * `Important` to find Cloud resources that contain "Important" as a word
    *   in any of the searchable fields.
-   * * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-   * of any
+   * * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
    *   word in any of the searchable fields.
-   * * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+   * * `Important location:(us-west1 OR global)` to find Cloud
    *   resources that contain "Important" as a word in any of the searchable
    *   fields and are also located in the "us-west1" region or the "global"
    *   location.
    * 
* * 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
@@ -227,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
@@ -249,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
@@ -271,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
@@ -294,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
@@ -374,17 +305,14 @@ public interface SearchAllResourcesRequestOrBuilder
    * 
* * 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
@@ -404,19 +332,17 @@ public interface SearchAllResourcesRequestOrBuilder
    * 
* * 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
@@ -445,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
@@ -487,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
@@ -529,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 73% 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 da48ddded3b7..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,35 +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; } - - 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.
@@ -85,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.
@@ -95,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.
@@ -114,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.
@@ -128,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.
@@ -138,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
@@ -154,7 +124,6 @@ public com.google.cloud.asset.v1.ResourceSearchResultOrBuilder getResultsOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,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
@@ -179,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 { @@ -196,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +176,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 < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -225,7 +194,8 @@ 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_); @@ -238,16 +208,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.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; } @@ -271,135 +242,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,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_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 @@ -437,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)) { @@ -458,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; @@ -498,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()) { @@ -518,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_); } @@ -557,32 +518,30 @@ 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) { @@ -592,29 +551,21 @@ 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.
@@ -630,8 +581,6 @@ public java.util.List getResults
       }
     }
     /**
-     *
-     *
      * 
      * A list of Resources that match the search query. It contains the resource
      * standard metadata information.
@@ -647,8 +596,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of Resources that match the search query. It contains the resource
      * standard metadata information.
@@ -664,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.
@@ -673,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();
@@ -687,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.
@@ -708,8 +652,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Resources that match the search query. It contains the resource
      * standard metadata information.
@@ -731,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.
@@ -740,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();
@@ -754,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.
@@ -775,8 +714,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Resources that match the search query. It contains the resource
      * standard metadata information.
@@ -796,8 +733,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Resources that match the search query. It contains the resource
      * standard metadata information.
@@ -809,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);
@@ -817,8 +753,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Resources that match the search query. It contains the resource
      * standard metadata information.
@@ -837,8 +771,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of Resources that match the search query. It contains the resource
      * standard metadata information.
@@ -857,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.
@@ -866,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.
@@ -879,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.
@@ -896,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 {
@@ -905,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.
@@ -915,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.
@@ -928,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.
@@ -942,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_;
@@ -966,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
@@ -975,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; @@ -990,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
@@ -999,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 { @@ -1014,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
@@ -1023,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
@@ -1046,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
@@ -1065,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); } @@ -1091,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(); } @@ -1105,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1140,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 74% 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 9acb834fb75f..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,35 +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; } - - 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
@@ -82,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string field = 1; - * * @return The field. */ @java.lang.Override @@ -91,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
@@ -107,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 { @@ -126,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
@@ -147,7 +123,6 @@ public com.google.protobuf.ByteString getFieldBytes() {
    * 
* * string type = 2; - * * @return The type. */ @java.lang.Override @@ -156,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
@@ -184,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 { @@ -203,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 @@ -220,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 { @@ -254,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.
@@ -268,8 +238,6 @@ public java.util.List getFieldsList(
     return fields_;
   }
   /**
-   *
-   *
    * 
    * Describes the nested schema fields if the type property is set
    * to RECORD.
@@ -278,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.
@@ -297,8 +263,6 @@ public int getFieldsCount() {
     return fields_.size();
   }
   /**
-   *
-   *
    * 
    * Describes the nested schema fields if the type property is set
    * to RECORD.
@@ -311,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.
@@ -321,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;
@@ -338,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_);
     }
@@ -370,7 +333,8 @@ 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;
@@ -380,18 +344,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.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;
   }
@@ -418,136 +385,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -568,9 +529,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 @@ -589,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_; @@ -612,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; @@ -683,10 +642,9 @@ 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_); } @@ -718,44 +676,40 @@ 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) { @@ -765,13 +719,10 @@ 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
@@ -779,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; @@ -794,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
@@ -803,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 { @@ -818,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
@@ -827,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
@@ -850,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
@@ -869,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; @@ -886,8 +829,6 @@ public Builder setFieldBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * *
      * The field data type. Possible values include
      * * STRING
@@ -907,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; @@ -922,8 +863,6 @@ public java.lang.String getType() { } } /** - * - * *
      * The field data type. Possible values include
      * * STRING
@@ -943,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 { @@ -958,8 +898,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
      * The field data type. Possible values include
      * * STRING
@@ -979,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
@@ -1014,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
@@ -1045,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; @@ -1062,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; @@ -1085,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 { @@ -1108,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.
@@ -1205,8 +1122,6 @@ public java.util.List getFieldsList(
       }
     }
     /**
-     *
-     *
      * 
      * Describes the nested schema fields if the type property is set
      * to RECORD.
@@ -1222,8 +1137,6 @@ public int getFieldsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Describes the nested schema fields if the type property is set
      * to RECORD.
@@ -1239,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.
@@ -1248,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();
@@ -1262,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.
@@ -1283,8 +1193,6 @@ public Builder setFields(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the nested schema fields if the type property is set
      * to RECORD.
@@ -1306,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.
@@ -1315,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();
@@ -1329,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.
@@ -1338,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());
@@ -1349,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.
@@ -1370,8 +1274,6 @@ public Builder addFields(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the nested schema fields if the type property is set
      * to RECORD.
@@ -1383,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);
@@ -1391,8 +1294,6 @@ public Builder addAllFields(
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the nested schema fields if the type property is set
      * to RECORD.
@@ -1411,8 +1312,6 @@ public Builder clearFields() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the nested schema fields if the type property is set
      * to RECORD.
@@ -1431,8 +1330,6 @@ public Builder removeFields(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Describes the nested schema fields if the type property is set
      * to RECORD.
@@ -1440,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.
@@ -1453,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.
@@ -1470,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 {
@@ -1479,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.
@@ -1489,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.
@@ -1502,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.
@@ -1516,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);
     }
 
@@ -1549,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();
   }
@@ -1563,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1598,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 70%
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 7b50fb7ada19..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,77 +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_name}} Compatible table schema.
+ * 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.
    * 
@@ -83,8 +62,6 @@ public java.util.List getFieldsList( return fields_; } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -92,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.
    * 
@@ -110,8 +85,6 @@ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -123,8 +96,6 @@ public com.google.cloud.asset.v1.TableFieldSchema getFields(int index) { return fields_.get(index); } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -132,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; @@ -149,7 +120,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 < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } @@ -163,7 +135,8 @@ 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; @@ -173,14 +146,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.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; } @@ -201,135 +175,130 @@ 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_name}} Compatible table schema.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -344,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_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 @@ -365,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)) { @@ -385,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; @@ -444,10 +411,9 @@ 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_); } @@ -479,26 +445,25 @@ 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) { @@ -508,28 +473,21 @@ 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.
      * 
@@ -544,8 +502,6 @@ public java.util.List getFieldsList( } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -560,8 +516,6 @@ public int getFieldsCount() { } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -576,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(); @@ -598,8 +551,6 @@ public Builder setFields(int index, com.google.cloud.asset.v1.TableFieldSchema v return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -618,8 +569,6 @@ public Builder setFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -640,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(); @@ -662,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()); @@ -681,8 +628,6 @@ public Builder addFields(com.google.cloud.asset.v1.TableFieldSchema.Builder buil return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -701,8 +646,6 @@ public Builder addFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -713,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); @@ -721,8 +665,6 @@ public Builder addAllFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -740,8 +682,6 @@ public Builder clearFields() { return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -759,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 { @@ -804,8 +739,6 @@ public com.google.cloud.asset.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(in } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -813,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); } @@ -871,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(); } @@ -885,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -920,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 71% 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 0c1752a2e028..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,86 +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/assets.proto package com.google.cloud.asset.v1; /** - * - * *
- * An asset in {{gcp_name}} and its temporal metadata, including the time window
+ * An asset in Google Cloud and its temporal metadata, including the time window
  * when it was observed and its status during that window.
  * 
* * 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.
      * 
@@ -89,8 +67,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ PRIOR_ASSET_STATE_UNSPECIFIED(0), /** - * - * *
      * prior_asset is populated correctly.
      * 
@@ -99,8 +75,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ PRESENT(1), /** - * - * *
      * Failed to set prior_asset.
      * 
@@ -109,8 +83,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ INVALID(2), /** - * - * *
      * Current asset is the first known state.
      * 
@@ -119,8 +91,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ DOES_NOT_EXIST(3), /** - * - * *
      * prior_asset is a deletion.
      * 
@@ -132,8 +102,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * prior_asset is not applicable for the current asset.
      * 
@@ -142,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.
      * 
@@ -152,8 +118,6 @@ public enum PriorAssetState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRESENT_VALUE = 1; /** - * - * *
      * Failed to set prior_asset.
      * 
@@ -162,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.
      * 
@@ -172,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.
      * 
@@ -182,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( @@ -206,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); } @@ -254,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; @@ -274,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 @@ -289,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 @@ -304,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.
    * 
@@ -320,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 @@ -338,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 {{gcp_name}}.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; - * * @return Whether the asset field is set. */ @java.lang.Override @@ -353,14 +296,11 @@ public boolean hasAsset() { return asset_ != null; } /** - * - * *
-   * An asset in {{gcp_name}}.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; - * * @return The asset. */ @java.lang.Override @@ -368,10 +308,8 @@ public com.google.cloud.asset.v1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1.Asset.getDefaultInstance() : asset_; } /** - * - * *
-   * An asset in {{gcp_name}}.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -384,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 @@ -438,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 @@ -454,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.
@@ -469,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;
@@ -481,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());
     }
@@ -491,9 +410,7 @@ 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) {
@@ -509,21 +426,24 @@ 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;
@@ -533,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);
@@ -542,17 +462,21 @@ 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;
@@ -570,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();
@@ -586,137 +511,131 @@ 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 {{gcp_name}} and its temporal metadata, including the time window
+   * An asset in Google Cloud and its temporal metadata, including the time window
    * when it was observed and its status during that window.
    * 
* * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -746,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 @@ -767,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 { @@ -794,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; @@ -876,43 +793,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) { @@ -925,47 +842,34 @@ 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.
      * 
@@ -986,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(); @@ -1005,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.
      * 
@@ -1017,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; } @@ -1031,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.
      * 
@@ -1051,8 +948,6 @@ public Builder clearWindow() { return this; } /** - * - * *
      * The time window when the asset data and state was observed.
      * 
@@ -1060,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.
      * 
@@ -1077,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.
      * 
@@ -1092,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 @@ -1125,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; @@ -1162,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 {{gcp_name}}.
+     * 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 {{gcp_name}}.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; - * * @return The asset. */ public com.google.cloud.asset.v1.Asset getAsset() { @@ -1199,10 +1068,8 @@ public com.google.cloud.asset.v1.Asset getAsset() { } } /** - * - * *
-     * An asset in {{gcp_name}}.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -1221,15 +1088,14 @@ public Builder setAsset(com.google.cloud.asset.v1.Asset value) { return this; } /** - * - * *
-     * An asset in {{gcp_name}}.
+     * 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(); @@ -1240,10 +1106,8 @@ public Builder setAsset(com.google.cloud.asset.v1.Asset.Builder builderForValue) return this; } /** - * - * *
-     * An asset in {{gcp_name}}.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -1252,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; } @@ -1264,10 +1128,8 @@ public Builder mergeAsset(com.google.cloud.asset.v1.Asset value) { return this; } /** - * - * *
-     * An asset in {{gcp_name}}.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -1284,24 +1146,20 @@ public Builder clearAsset() { return this; } /** - * - * *
-     * An asset in {{gcp_name}}.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; */ public com.google.cloud.asset.v1.Asset.Builder getAssetBuilder() { - + onChanged(); return getAssetFieldBuilder().getBuilder(); } /** - * - * *
-     * An asset in {{gcp_name}}.
+     * An asset in Google Cloud.
      * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -1310,30 +1168,26 @@ 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 {{gcp_name}}.
+     * An asset in Google Cloud.
      * 
* * .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_; @@ -1341,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; @@ -1435,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.
@@ -1499,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.
@@ -1508,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();
@@ -1519,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.
@@ -1532,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;
         }
@@ -1546,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.
@@ -1567,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.
@@ -1577,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.
@@ -1595,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.
@@ -1611,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);
     }
 
@@ -1638,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();
   }
@@ -1652,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1687,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 77%
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 97bf6469268d..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,47 +35,36 @@ 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 {{gcp_name}}.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; - * * @return Whether the asset field is set. */ boolean hasAsset(); /** - * - * *
-   * An asset in {{gcp_name}}.
+   * 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 {{gcp_name}}.
+   * An asset in Google Cloud.
    * 
* * .google.cloud.asset.v1.Asset asset = 3; @@ -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 70%
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 ce73781a40ed..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,81 +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; } - - 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 @@ -83,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 @@ -98,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).
    * 
@@ -114,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 @@ -130,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 @@ -146,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.
@@ -161,7 +127,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -173,7 +138,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 (startTime_ != null) {
       output.writeMessage(1, getStartTime());
     }
@@ -190,10 +156,12 @@ 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;
@@ -203,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);
@@ -212,11 +180,13 @@ 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;
@@ -242,135 +212,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -390,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 @@ -430,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; @@ -503,25 +467,26 @@ 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) { @@ -534,33 +499,24 @@ 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() { @@ -571,8 +527,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Start time of the time window (exclusive).
      * 
@@ -593,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(); @@ -612,8 +565,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Start time of the time window (exclusive).
      * 
@@ -624,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; } @@ -636,8 +587,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Start time of the time window (exclusive).
      * 
@@ -656,8 +605,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Start time of the time window (exclusive).
      * 
@@ -665,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).
      * 
@@ -682,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).
      * 
@@ -695,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_; @@ -713,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() { @@ -752,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.
@@ -775,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.
@@ -784,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();
@@ -795,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.
@@ -808,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;
         }
@@ -820,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.
@@ -841,8 +766,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * End time of the time window (inclusive). If not specified, the current
      * timestamp is used instead.
@@ -851,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.
@@ -869,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.
@@ -883,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);
     }
 
@@ -910,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();
   }
@@ -924,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -959,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 70%
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 f856fc9afde9..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,85 +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; } - - 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 @@ -87,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 @@ -106,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.
@@ -126,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 @@ -144,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 @@ -162,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() { @@ -179,7 +142,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +153,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 (feed_ != null) { output.writeMessage(1, getFeed()); } @@ -208,10 +171,12 @@ 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; @@ -221,21 +186,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.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; @@ -261,136 +227,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,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 @@ -431,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 { @@ -451,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; @@ -524,25 +482,26 @@ 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) { @@ -555,41 +514,32 @@ 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:
+     * 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() { @@ -600,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.
@@ -626,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.
@@ -638,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();
@@ -649,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.
@@ -664,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;
         }
@@ -676,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.
@@ -700,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.
@@ -713,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.
@@ -734,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.
@@ -751,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_;
@@ -769,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) { @@ -839,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(); @@ -861,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; } @@ -888,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) { @@ -911,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); } @@ -988,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(); } @@ -1002,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1037,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 66% 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 d922bb788f21..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,75 +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; } - - 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,
@@ -79,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 @@ -90,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,
@@ -101,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,
@@ -125,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() { @@ -137,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 @@ -153,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 @@ -169,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() { @@ -184,7 +139,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +150,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 (savedQuery_ != null) { output.writeMessage(1, getSavedQuery()); } @@ -213,10 +168,12 @@ 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; @@ -226,21 +183,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.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; @@ -267,135 +225,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,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 @@ -436,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 { @@ -456,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; @@ -496,8 +446,7 @@ 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()); } @@ -530,25 +479,26 @@ 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) { @@ -561,13 +511,8 @@ 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,
@@ -577,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,
@@ -598,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,
@@ -625,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) { @@ -643,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,
@@ -654,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(); @@ -669,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,
@@ -680,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; } @@ -702,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,
@@ -713,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) { @@ -729,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,
@@ -740,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,
@@ -761,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,
@@ -786,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_; @@ -809,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) { @@ -873,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(); @@ -893,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; } @@ -918,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) { @@ -939,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); } @@ -1010,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(); } @@ -1024,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1059,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 75% 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 59377941f0b4..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,51 +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;
   }
-
-  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:
@@ -82,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string version = 1; - * * @return The version. */ @java.lang.Override @@ -91,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:
@@ -109,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 { @@ -128,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.
@@ -144,7 +120,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
    * 
* * .google.protobuf.Struct resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -152,8 +127,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * JSON representation of the resource as defined by the corresponding
    * service providing this resource.
@@ -168,7 +141,6 @@ public boolean hasResource() {
    * 
* * .google.protobuf.Struct resource = 2; - * * @return The resource. */ @java.lang.Override @@ -176,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.
@@ -199,7 +169,6 @@ public com.google.protobuf.StructOrBuilder getResourceOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -211,7 +180,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_);
     }
@@ -231,7 +201,8 @@ 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;
@@ -241,18 +212,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.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;
@@ -276,104 +248,97 @@ 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.
@@ -381,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,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
@@ -443,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_;
@@ -459,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;
@@ -533,25 +497,24 @@ 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) {
@@ -564,8 +527,6 @@ public Builder mergeFrom(
 
     private java.lang.Object version_ = "";
     /**
-     *
-     *
      * 
      * API version of the resource.
      * Example:
@@ -575,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; @@ -590,8 +551,6 @@ public java.lang.String getVersion() { } } /** - * - * *
      * API version of the resource.
      * Example:
@@ -601,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 { @@ -616,8 +576,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * API version of the resource.
      * Example:
@@ -627,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:
@@ -652,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:
@@ -673,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; @@ -690,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.
@@ -711,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.
@@ -734,7 +679,6 @@ public boolean hasResource() {
      * 
* * .google.protobuf.Struct resource = 2; - * * @return The resource. */ public com.google.protobuf.Struct getResource() { @@ -745,8 +689,6 @@ public com.google.protobuf.Struct getResource() { } } /** - * - * *
      * JSON representation of the resource as defined by the corresponding
      * service providing this resource.
@@ -776,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.
@@ -793,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();
@@ -804,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.
@@ -825,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;
         }
@@ -837,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.
@@ -866,8 +803,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * JSON representation of the resource as defined by the corresponding
      * service providing this resource.
@@ -884,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.
@@ -910,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.
@@ -932,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);
     }
 
@@ -959,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();
   }
@@ -973,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1008,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 72%
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 b68367aa0c85..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";
-
-  // Exports assets with time and resource types to a given {{storage_name}}
-  // location/{{bigquery_name}} table. For {{storage_name}} 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_name}} 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.
+  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.
   rpc ExportAssets(ExportAssetsRequest) returns (google.longrunning.Operation) {
     option (google.api.http) = {
       post: "/v1/{parent=*/*}:exportAssets"
@@ -77,13 +75,12 @@ service AssetService {
 
   // 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.
+  // 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.
-  rpc BatchGetAssetsHistory(BatchGetAssetsHistoryRequest)
-      returns (BatchGetAssetsHistoryResponse) {
+  rpc BatchGetAssetsHistory(BatchGetAssetsHistoryRequest) returns (BatchGetAssetsHistoryResponse) {
     option (google.api.http) = {
       get: "/v1/{parent=*/*}:batchGetAssetsHistory"
     };
@@ -132,52 +129,46 @@ service AssetService {
     option (google.api.method_signature) = "name";
   }
 
-  // Searches all {{gcp_name}} resources within the specified scope, such as a
-  // project, folder, or organization. The caller must be granted the
+  // 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.
-  rpc SearchAllResources(SearchAllResourcesRequest)
-      returns (SearchAllResourcesResponse) {
+  rpc SearchAllResources(SearchAllResourcesRequest) returns (SearchAllResourcesResponse) {
     option (google.api.http) = {
       get: "/v1/{scope=*/*}:searchAllResources"
     };
     option (google.api.method_signature) = "scope,query,asset_types";
   }
 
-  // Searches all {{iam_name_short}} policies within the specified scope, such
-  // as a project, folder, or organization. The caller must be granted the
+  // 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.
-  rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest)
-      returns (SearchAllIamPoliciesResponse) {
+  rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest) returns (SearchAllIamPoliciesResponse) {
     option (google.api.http) = {
       get: "/v1/{scope=*/*}:searchAllIamPolicies"
     };
     option (google.api.method_signature) = "scope,query";
   }
 
-  // Analyzes {{iam_name_short}} policies to answer which identities have what
-  // accesses on which resources.
-  rpc AnalyzeIamPolicy(AnalyzeIamPolicyRequest)
-      returns (AnalyzeIamPolicyResponse) {
+  // Analyzes IAM policies to answer which identities have what accesses on
+  // which resources.
+  rpc AnalyzeIamPolicy(AnalyzeIamPolicyRequest) returns (AnalyzeIamPolicyResponse) {
     option (google.api.http) = {
       get: "/v1/{analysis_query.scope=*/*}:analyzeIamPolicy"
     };
   }
 
-  // Analyzes {{iam_name_short}} policies asynchronously to answer which
-  // identities have what accesses on which resources, and writes the analysis
-  // results to a Google
-  // {{storage_name}} or a {{bigquery_name}} destination. For {{storage_name}}
-  // 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) {
+  // 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.
+  rpc AnalyzeIamPolicyLongrunning(AnalyzeIamPolicyLongrunningRequest) returns (google.longrunning.Operation) {
     option (google.api.http) = {
       post: "/v1/{analysis_query.scope=*/*}:analyzeIamPolicyLongrunning"
       body: "*"
@@ -200,7 +191,7 @@ service AssetService {
   }
 
   // Issue a job that queries assets using a SQL statement compatible with
-  // [{{bigquery_name}} Standard
+  // [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,
@@ -210,7 +201,7 @@ service AssetService {
   // with the `job_reference` from the a previous `QueryAssets` call.
   //
   // Note, the query result has approximately 10 GB limitation enforced by
-  // {{bigquery_name}}
+  // BigQuery
   // https://cloud.google.com/bigquery/docs/best-practices-performance-output,
   // queries return larger results will result in errors.
   rpc QueryAssets(QueryAssetsRequest) returns (QueryAssetsResponse) {
@@ -238,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"
     };
@@ -256,17 +246,15 @@ 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/*}"
     };
     option (google.api.method_signature) = "name";
   }
 
-  // Gets effective {{iam_name_short}} policies for a batch of resources.
-  rpc BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest)
-      returns (BatchGetEffectiveIamPoliciesResponse) {
+  // Gets effective IAM policies for a batch of resources.
+  rpc BatchGetEffectiveIamPolicies(BatchGetEffectiveIamPoliciesRequest) returns (BatchGetEffectiveIamPoliciesResponse) {
     option (google.api.http) = {
       get: "/v1/{scope=*/*}/effectiveIamPolicies:batchGet"
     };
@@ -277,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.
@@ -316,17 +303,16 @@ message ExportAssetsRequest {
   // supported asset type, an INVALID_ARGUMENT error will be returned.
   //
   // If specified, only matching assets will be returned, otherwise, it will
-  // snapshot all asset types. See [Introduction to
-  // {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-  // all supported asset types.
+  // snapshot all asset types. See [Introduction to Cloud Asset
+  // Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+  // for all supported asset types.
   repeated string asset_types = 3;
 
   // Asset content type. If not specified, no content but the asset name will be
   // 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:
@@ -341,17 +327,15 @@ message ExportAssetsRequest {
   // it snapshots the supported relationships for all [asset_types] or returns
   // an error if any of the [asset_types] has no relationship support.
   // An unspecified asset types field means all supported asset_types.
-  // See [Introduction to
-  // {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-  // all supported asset types and relationship types.
+  // 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 = 6;
 }
 
 // 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;
@@ -360,20 +344,20 @@ message ExportAssetsResponse {
   OutputConfig output_config = 2;
 
   // Output result indicating where the assets were exported to. For example, a
-  // set of actual {{storage_name}} object uris where the assets are
+  // set of actual Google Cloud Storage object uris where the assets are
   // exported to. The uris can be different from what [output_config] has
   // specified, as the service will split the output object into multiple ones
-  // once it exceeds a single {{storage_name}} object limit.
+  // once it exceeds a single Google Cloud Storage object limit.
   OutputResult output_result = 3;
 }
 
 // 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) = {
@@ -403,9 +387,9 @@ message ListAssetsRequest {
   // supported asset type, an INVALID_ARGUMENT error will be returned.
   //
   // If specified, only matching assets will be returned, otherwise, it will
-  // snapshot all asset types. See [Introduction to
-  // {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-  // all supported asset types.
+  // snapshot all asset types. See [Introduction to Cloud Asset
+  // Inventory](https://cloud.google.com/asset-inventory/docs/overview)
+  // for all supported asset types.
   repeated string asset_types = 3;
 
   // Asset content type. If not specified, no content but the asset name will
@@ -433,9 +417,9 @@ message ListAssetsRequest {
   // it snapshots the supported relationships for all [asset_types] or returns
   // an error if any of the [asset_types] has no relationship support.
   // An unspecified asset types field means all supported asset_types.
-  // See [Introduction to
-  // {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-  // all supported asset types and relationship types.
+  // 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 = 7;
 }
 
@@ -499,11 +483,10 @@ message BatchGetAssetsHistoryRequest {
   // it outputs the supported relationships' history on the [asset_names] or
   // returns an error if any of the [asset_names]'s types has no relationship
   // support.
-  // See [Introduction to
-  // {{cai_name}}](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];
+  // 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];
 }
 
 // Batch get assets history response.
@@ -525,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];
@@ -540,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"
+    }
   ];
 }
 
@@ -559,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.
@@ -569,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 {
@@ -580,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"
+    }
   ];
 }
 
@@ -588,11 +575,11 @@ message DeleteFeedRequest {
 message OutputConfig {
   // Asset export destination.
   oneof destination {
-    // Destination on {{storage_name}}.
+    // Destination on Cloud Storage.
     GcsDestination gcs_destination = 1;
 
-    // Destination on {{bigquery_name}}. The output table stores the fields in
-    // asset Protobuf as columns in {{bigquery_name}}.
+    // Destination on BigQuery. The output table stores the fields in asset
+    // Protobuf as columns in BigQuery.
     BigQueryDestination bigquery_destination = 2;
   }
 }
@@ -601,34 +588,34 @@ message OutputConfig {
 message OutputResult {
   // Asset export result.
   oneof result {
-    // Export result on {{storage_name}}.
+    // Export result on Cloud Storage.
     GcsOutputResult gcs_result = 1;
   }
 }
 
-// A {{storage_name}} output result.
+// A Cloud Storage output result.
 message GcsOutputResult {
-  // List of uris of the {{storage_name}} objects. Example:
+  // List of uris of the Cloud Storage objects. Example:
   // "gs://bucket_name/object_name".
   repeated string uris = 1;
 }
 
-// A {{storage_name}} location.
+// A Cloud Storage location.
 message GcsDestination {
   // Required.
   oneof object_uri {
-    // The uri of the {{storage_name}} object. It's the same uri that is used by
+    // 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.
     //
-    // If the specified {{storage_name}} object already exists and there is no
+    // If the specified Cloud Storage object already exists and there is no
     // [hold](https://cloud.google.com/storage/docs/object-holds), it will be
     // overwritten with the exported result.
     string uri = 1;
 
-    // The uri prefix of all generated {{storage_name}} objects. Example:
+    // The uri prefix of all generated Cloud Storage objects. Example:
     // "gs://bucket_name/object_name_prefix". Each object uri is in format:
     // "gs://bucket_name/object_name_prefix// and only
     // contains assets for that type.  starts from 0. Example:
@@ -641,20 +628,20 @@ message GcsDestination {
   }
 }
 
-// A {{bigquery_name}} destination for exporting assets to.
+// A BigQuery destination for exporting assets to.
 message BigQueryDestination {
-  // Required. The {{bigquery_name}} dataset in format
+  // Required. The BigQuery dataset in format
   // "projects/projectId/datasets/datasetId", to which the snapshot result
   // should be exported. If this dataset does not exist, the export call returns
   // an INVALID_ARGUMENT error. Setting the `contentType` for `exportAssets`
   // determines the
   // [schema](/asset-inventory/docs/exporting-to-bigquery#bigquery-schema)
-  // of the {{bigquery_name}} table. Setting `separateTablesPerAssetType` to
-  // `TRUE` also influences the schema.
+  // of the BigQuery table. Setting `separateTablesPerAssetType` to `TRUE` also
+  // influences the schema.
   string dataset = 1 [(google.api.field_behavior) = REQUIRED];
 
-  // Required. The {{bigquery_name}} table to which the snapshot result should
-  // be written. If this table does not exist, a new table with the given name
+  // 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
   // will be created.
   string table = 2 [(google.api.field_behavior) = REQUIRED];
 
@@ -700,7 +687,7 @@ message BigQueryDestination {
   // When [content_type] in the ExportAssetsRequest is `RESOURCE`, the schema of
   // each table will include RECORD-type columns mapped to the nested fields in
   // the Asset.resource.data field of that asset type (up to the 15 nested level
-  // {{bigquery_name}} supports
+  // BigQuery supports
   // (https://cloud.google.com/bigquery/docs/nested-repeated#limitations)). The
   // fields in >15 nested levels will be stored in JSON format string as a child
   // column of its parent RECORD column.
@@ -713,12 +700,12 @@ message BigQueryDestination {
   bool separate_tables_per_asset_type = 5;
 }
 
-// Specifications of {{bigquery_name}} partitioned table as export destination.
+// Specifications of BigQuery partitioned table as export destination.
 message PartitionSpec {
   // This enum is used to determine the partition key column when exporting
-  // assets to {{bigquery_name}} partitioned table(s). Note that, if the
-  // partition key is a timestamp column, the actual partition is based on its
-  // date value (expressed in UTC. see details in
+  // assets to BigQuery partitioned table(s). Note that, if the partition key is
+  // a timestamp column, the actual partition is based on its date value
+  // (expressed in UTC. see details in
   // https://cloud.google.com/bigquery/docs/partitioned-tables#date_timestamp_partitioned_tables).
   enum PartitionKey {
     // Unspecified partition key. If used, it means using non-partitioned table.
@@ -738,7 +725,7 @@ message PartitionSpec {
     REQUEST_TIME = 2;
   }
 
-  // The partition key for {{bigquery_name}} partitioned table.
+  // The partition key for BigQuery partitioned table.
   PartitionKey partition_key = 1;
 }
 
@@ -805,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
@@ -835,17 +821,16 @@ message Feed {
   // it outputs the supported relationships of the types of [asset_names] and
   // [asset_types] or returns an error if any of the [asset_names] or the
   // [asset_types] has no replationship support.
-  // See [Introduction to
-  // {{cai_name}}](https://cloud.google.com/asset-inventory/docs/overview) for
-  // all supported asset types and relationship types.
+  // 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 = 7;
 }
 
 // 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.
   //
@@ -864,30 +849,26 @@ message SearchAllResourcesRequest {
   //
   // Examples:
   //
-  // * `name:Important` to find {{gcp_name}} resources whose name contains
+  // * `name:Important` to find Cloud resources whose name contains
   //   "Important" as a word.
-  // * `name=Important` to find the {{gcp_name}} resource whose name is exactly
+  // * `name=Important` to find the Cloud resource whose name is exactly
   //   "Important".
-  // * `displayName:Impor*` to find {{gcp_name}} resources whose display name
+  // * `displayName:Impor*` to find Cloud resources whose display name
   //   contains "Impor" as a prefix of any word in the field.
-  // * `location:us-west*` to find {{gcp_name}} resources whose location
-  // contains both
+  // * `location:us-west*` to find Cloud resources whose location contains both
   //   "us" and "west" as prefixes.
-  // * `labels:prod` to find {{gcp_name}} resources whose labels contain "prod"
-  // as
+  // * `labels:prod` to find Cloud resources whose labels contain "prod" as
   //   a key or value.
-  // * `labels.env:prod` to find {{gcp_name}} resources that have a label "env"
+  // * `labels.env:prod` to find Cloud resources that have a label "env"
   //   and its value is "prod".
-  // * `labels.env:*` to find {{gcp_name}} resources that have a label "env".
-  // * `kmsKey:key` to find {{gcp_name}} resources encrypted with a
-  // customer-managed
+  // * `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 {{gcp_name}} resources encrypted with
-  // customer-managed
+  // * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
   //   encryption keys whose name contains the word "key".
-  // * `relationships:instance-group-1` to find {{gcp_name}} resources that have
+  // * `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
   //   have relationships of type "INSTANCE_TO_INSTANCEGROUP".
@@ -895,34 +876,28 @@ message SearchAllResourcesRequest {
   //   compute instances that have relationships with "instance-group-1" in the
   //   compute instance group resource name, for relationship type
   //   "INSTANCE_TO_INSTANCEGROUP".
-  // * `state:ACTIVE` to find {{gcp_name}} resources whose state contains
-  // "ACTIVE" as a
+  // * `state:ACTIVE` to find Cloud resources whose state contains "ACTIVE" as a
   //   word.
-  // * `NOT state:ACTIVE` to find {{gcp_name}} resources whose state doesn't
-  // contain
+  // * `NOT state:ACTIVE` to find Cloud resources whose state doesn't contain
   //   "ACTIVE" as a word.
-  // * `createTime<1609459200` to find {{gcp_name}} resources that were created
-  // before
+  // * `createTime<1609459200` to find Cloud resources that were created before
   //   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
   //   "2021-01-01 00:00:00 UTC" in seconds.
-  // * `updateTime>1609459200` to find {{gcp_name}} resources that were updated
-  // after
+  // * `updateTime>1609459200` to find Cloud resources that were updated after
   //   "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
   //   "2021-01-01 00:00:00 UTC" in seconds.
-  // * `Important` to find {{gcp_name}} resources that contain "Important" as a
-  // word
+  // * `Important` to find Cloud resources that contain "Important" as a word
   //   in any of the searchable fields.
-  // * `Impor*` to find {{gcp_name}} resources that contain "Impor" as a prefix
-  // of any
+  // * `Impor*` to find Cloud resources that contain "Impor" as a prefix of any
   //   word in any of the searchable fields.
-  // * `Important location:(us-west1 OR global)` to find {{gcp_name}}
+  // * `Important location:(us-west1 OR global)` to find Cloud
   //   resources that contain "Important" as a word in any of the searchable
   //   fields and are also located in the "us-west1" region or the "global"
   //   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:
@@ -937,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:
   //
@@ -973,10 +947,10 @@ message SearchAllResourcesRequest {
   // `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):
@@ -1006,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.
@@ -1022,11 +995,11 @@ message SearchAllResourcesResponse {
   string next_page_token = 2;
 }
 
-// Search all {{iam_name_short}} policies request.
+// 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_name_short}} 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.
   //
@@ -1041,93 +1014,80 @@ message SearchAllIamPoliciesRequest {
   // 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)
   // for more information. If not specified or empty, it will search all the
-  // {{iam_name_short}} policies within the specified `scope`. Note that the
-  // query string is compared against each {{iam_name_short}} policy binding,
-  // including its principals, roles, and {{iam_name_short}} conditions. The
-  // returned {{iam_name_short}} policies will only contain the bindings that
-  // match your query. To learn more about the {{iam_name_short}} policy
-  // structure, see the [{{iam_name_short}} policy
+  // IAM policies within the specified `scope`. Note that the query string is
+  // compared against each Cloud IAM policy binding, including its principals,
+  // roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
+  // contain the bindings that match your query. To learn more about the IAM
+  // policy structure, see the [IAM policy
   // documentation](https://cloud.google.com/iam/help/allow-policies/structure).
   //
   // Examples:
   //
-  // * `policy:amy@gmail.com` to find {{iam_name_short}} policy bindings that
-  // specify user
+  // * `policy:amy@gmail.com` to find IAM policy bindings that specify user
   //   "amy@gmail.com".
-  // * `policy:roles/compute.admin` to find {{iam_name_short}} policy bindings
-  // that specify
+  // * `policy:roles/compute.admin` to find IAM policy bindings that specify
   //   the Compute Admin role.
-  // * `policy:comp*` to find {{iam_name_short}} policy bindings that contain
-  // "comp" as a
+  // * `policy:comp*` to find IAM policy bindings that contain "comp" as a
   //   prefix of any word in the binding.
-  // * `policy.role.permissions:storage.buckets.update` to find
-  // {{iam_name_short}} policy
+  // * `policy.role.permissions:storage.buckets.update` to find IAM policy
   //   bindings that specify a role containing "storage.buckets.update"
   //   permission. Note that if callers don't have `iam.roles.get` access to a
   //   role's included permissions, policy bindings that specify this role will
   //   be dropped from the search results.
-  // * `policy.role.permissions:upd*` to find {{iam_name_short}} policy bindings
-  // that specify a
+  // * `policy.role.permissions:upd*` to find IAM policy bindings that specify a
   //   role containing "upd" as a prefix of any word in the role permission.
   //   Note that if callers don't have `iam.roles.get` access to a role's
   //   included permissions, policy bindings that specify this role will be
   //   dropped from the search results.
-  // * `resource:organizations/123456` to find {{iam_name_short}} policy
-  // bindings
+  // * `resource:organizations/123456` to find IAM policy bindings
   //   that are set on "organizations/123456".
   // * `resource=//cloudresourcemanager.googleapis.com/projects/myproject` to
-  //   find {{iam_name_short}} policy bindings that are set on the project named
-  //   "myproject".
-  // * `Important` to find {{iam_name_short}} policy bindings that contain
-  // "Important" as a
+  //   find IAM policy bindings that are set on the project named "myproject".
+  // * `Important` to find IAM policy bindings that contain "Important" as a
   //   word in any of the searchable fields (except for the included
   //   permissions).
   // * `resource:(instance1 OR instance2) policy:amy` to find
-  //   {{iam_name_short}} policy bindings that are set on resources "instance1"
-  //   or "instance2" and also specify user "amy".
-  // * `roles:roles/compute.admin` to find {{iam_name_short}} policy bindings
-  // that specify the
+  //   IAM policy bindings that are set on resources "instance1" or
+  //   "instance2" and also specify user "amy".
+  // * `roles:roles/compute.admin` to find IAM policy bindings that specify the
   //   Compute Admin role.
-  // * `memberTypes:user` to find {{iam_name_short}} policy bindings that
-  // contain the
+  // * `memberTypes:user` to find IAM policy bindings that contain the
   //   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_name_short}} policies are
-  // attached to. If empty, it will search the {{iam_name_short}} 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_name_short}} policies attached
-  // to asset type starts with "compute.googleapis.com".
-  // * ".*Instance" snapshots {{iam_name_short}} policies attached to asset type
-  // ends with "Instance".
-  // * ".*Instance.*" snapshots {{iam_name_short}} policies attached to asset
-  // type contains "Instance".
+  // * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
+  // starts with "compute.googleapis.com".
+  // * ".*Instance" snapshots IAM policies attached to asset type ends with
+  // "Instance".
+  // * ".*Instance.*" snapshots IAM policies attached to asset type contains
+  // "Instance".
   //
   // See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
   // regular expression syntax. If the regular expression does not match any
   // 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
@@ -1138,11 +1098,10 @@ message SearchAllIamPoliciesRequest {
   string order_by = 7 [(google.api.field_behavior) = OPTIONAL];
 }
 
-// Search all {{iam_name_short}} policies response.
+// Search all IAM policies response.
 message SearchAllIamPoliciesResponse {
-  // A list of {{iam_name_short}} policies that match the search query. Related
-  // information such as the associated resource is returned along with the
-  // policy.
+  // A list of IamPolicy that match the search query. Related information such
+  // as the associated resource is returned along with the policy.
   repeated IamPolicySearchResult results = 1;
 
   // Set if there are more results than those appearing in this response; to get
@@ -1151,7 +1110,7 @@ message SearchAllIamPoliciesResponse {
   string next_page_token = 2;
 }
 
-// {{iam_name_short}} policy analysis query message.
+// IAM policy analysis query message.
 message IamPolicyAnalysisQuery {
   // Specifies the resource to analyze for access policies, which may be set
   // directly on the resource, or on ancestors such as organizations, folders or
@@ -1169,7 +1128,7 @@ message IamPolicyAnalysisQuery {
   // directly or indirectly.
   message IdentitySelector {
     // Required. The identity appear in the form of principals in
-    // [{{iam_name_short}} policy
+    // [IAM policy
     // binding](https://cloud.google.com/iam/reference/rest/v1/Binding).
     //
     // The examples of supported forms are:
@@ -1199,12 +1158,11 @@ message IamPolicyAnalysisQuery {
   // Contains query options.
   message Options {
     // Optional. If true, the identities section of the result will expand any
-    // Google groups appearing in an {{iam_name_short}} policy binding.
+    // 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][].
@@ -1213,34 +1171,30 @@ message IamPolicyAnalysisQuery {
     bool expand_groups = 1 [(google.api.field_behavior) = OPTIONAL];
 
     // Optional. If true, the access section of result will expand any roles
-    // appearing in {{iam_name_short}} policy bindings to include their
-    // permissions.
+    // 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_name_short}} 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_name_short}} policy with P
-    // on a GCP folder, the results will also include resources in that folder
-    // with permission P.
+    // 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
@@ -1253,37 +1207,36 @@ 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_name_short}} policy states user A has
+    // permission P, and there's an IAM policy states user A has
     // iam.serviceAccounts.getAccessToken permission to a service account SA,
-    // and there's another {{iam_name_short}} policy states service account SA
-    // has permission P to a GCP folder F, then user A potentially has access to
-    // the GCP folder F. And those advanced analysis results will be included in
+    // and there's another IAM policy states service account SA has permission P
+    // to a GCP folder F, then user A potentially has access to the GCP folder
+    // F. And those advanced analysis results will be included in
     // [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
     //
     // Another example, if the request analyzes for who has
-    // permission P to a GCP folder F, and there's an {{iam_name_short}} policy
-    // states user A has iam.serviceAccounts.actAs permission to a service
-    // account SA, and there's another {{iam_name_short}} policy states service
-    // account SA has permission P to the GCP folder F, then user A potentially
-    // has access to the GCP folder F. And those advanced analysis results will
-    // be included in
+    // permission P to a GCP folder F, and there's an IAM policy states user A
+    // has iam.serviceAccounts.actAs permission to a service account SA, and
+    // there's another IAM policy states service account SA has permission P to
+    // the GCP folder F, then user A potentially has access to the GCP folder
+    // F. And those advanced analysis results will be included in
     // [AnalyzeIamPolicyResponse.service_account_impersonation_analysis][google.cloud.asset.v1.AnalyzeIamPolicyResponse.service_account_impersonation_analysis].
     //
     // Only the following permissions are considered in this analysis:
@@ -1296,23 +1249,22 @@ 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_name_short}} conditions context.
+  // The IAM conditions context.
   message ConditionContext {
-    // The {{iam_name_short}} conditions time context.
+    // The IAM conditions time context.
     oneof TimeContext {
-      // The hypothetical access timestamp to evaluate {{iam_name_short}}
-      // conditions. Note that this value must not be earlier than the current
-      // time; otherwise, an INVALID_ARGUMENT error will be returned.
+      // The hypothetical access timestamp to evaluate IAM conditions. Note that
+      // this value must not be earlier than the current time; otherwise, an
+      // INVALID_ARGUMENT error will be returned.
       google.protobuf.Timestamp access_time = 1;
     }
   }
 
-  // Required. The relative name of the root asset. Only resources and
-  // {{iam_name_short}} 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
@@ -1326,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];
@@ -1339,18 +1289,14 @@ message IamPolicyAnalysisQuery {
   // Optional. The query options.
   Options options = 5 [(google.api.field_behavior) = OPTIONAL];
 
-  // Optional. The hypothetical context for {{iam_name_short}} conditions
-  // evaluation.
-  ConditionContext condition_context = 6
-      [(google.api.field_behavior) = OPTIONAL];
+  // Optional. The hypothetical context for IAM conditions evaluation.
+  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:
   //
@@ -1370,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
@@ -1381,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.
@@ -1415,36 +1356,33 @@ 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;
 }
 
-// Output configuration for export {{iam_name_short}} policy analysis
-// destination.
+// Output configuration for export IAM policy analysis destination.
 message IamPolicyAnalysisOutputConfig {
-  // A {{storage_name}} location.
+  // A Cloud Storage location.
   message GcsDestination {
-    // Required. The uri of the {{storage_name}} object. It's the same uri that
-    // is used by gsutil. Example: "gs://bucket_name/object_name". See [Viewing
-    // and Editing Object
+    // 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.
     //
-    // If the specified {{storage_name}} object already exists and there is no
+    // If the specified Cloud Storage object already exists and there is no
     // [hold](https://cloud.google.com/storage/docs/object-holds), it will be
     // overwritten with the analysis result.
     string uri = 1 [(google.api.field_behavior) = REQUIRED];
   }
 
-  // A {{bigquery_name}} destination.
+  // A BigQuery destination.
   message BigQueryDestination {
-    // This enum determines the partition key column for the {{bigquery_name}}
-    // tables. Partitioning can improve query performance and reduce query cost
-    // by filtering partitions. Refer to
+    // This enum determines the partition key column for the bigquery tables.
+    // Partitioning can improve query performance and reduce query cost by
+    // filtering partitions. Refer to
     // https://cloud.google.com/bigquery/docs/partitioned-tables for details.
     enum PartitionKey {
       // Unspecified partition key. Tables won't be partitioned using this
@@ -1457,15 +1395,13 @@ message IamPolicyAnalysisOutputConfig {
       REQUEST_TIME = 1;
     }
 
-    // Required. The {{bigquery_name}} 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_name}} 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].
@@ -1473,42 +1409,39 @@ message IamPolicyAnalysisOutputConfig {
     // on the [partition_key].
     string table_prefix = 2 [(google.api.field_behavior) = REQUIRED];
 
-    // The partition key for {{bigquery_name}} partitioned table.
+    // 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_name}} overwrites the entire table or all the partitions data.
-    // * WRITE_APPEND: If the table or partition already exists,
-    // {{bigquery_name}} appends the data to the table or the latest partition.
+    // * 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
+    // appends the data to the table or the latest partition.
     // * WRITE_EMPTY: If the table already exists and contains data, an error is
     // returned.
     //
     // The default value is WRITE_APPEND. Each action is atomic and only occurs
-    // if {{bigquery_name}} is able to complete the job successfully. Details
-    // are at
+    // if BigQuery is able to complete the job successfully. Details are at
     // https://cloud.google.com/bigquery/docs/loading-data-local#appending_to_or_overwriting_a_table_using_a_local_file.
     string write_disposition = 4 [(google.api.field_behavior) = OPTIONAL];
   }
 
-  // {{iam_name_short}} policy analysis export destination.
+  // IAM policy analysis export destination.
   oneof destination {
-    // Destination on {{storage_name}}.
+    // Destination on Cloud Storage.
     GcsDestination gcs_destination = 1;
 
-    // Destination on {{bigquery_name}}.
+    // Destination on BigQuery.
     BigQueryDestination bigquery_destination = 2;
   }
 }
 
-// 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:
   //
@@ -1528,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 {
@@ -1550,12 +1482,9 @@ message SavedQuery {
   // The query content.
   message QueryContent {
     oneof query_content {
-      // An {{iam_name_short}} 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.
+      // 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.
       IamPolicyAnalysisQuery iam_policy_analysis_query = 1;
     }
   }
@@ -1572,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.
@@ -1597,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) = {
@@ -1609,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]-/.
@@ -1642,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,
@@ -1661,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];
 
@@ -1698,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
@@ -1756,14 +1679,14 @@ message AnalyzeMoveRequest {
 // The response message for resource move analysis.
 message AnalyzeMoveResponse {
   // The list of analyses returned from performing the intended resource move
-  // analysis. The analysis is grouped by different {{gcp_name}} services.
+  // analysis. The analysis is grouped by different Cloud services.
   repeated MoveAnalysis move_analysis = 1;
 }
 
 // A message to group the analysis information.
 message MoveAnalysis {
-  // The user friendly display name of the analysis. E.g. {{iam_name_short}},
-  // {{orgpol_name}} etc.
+  // The user friendly display name of the analysis. E.g. IAM, Organization
+  // Policy etc.
   string display_name = 1;
 
   oneof result {
@@ -1795,24 +1718,23 @@ message MoveImpact {
 
 // Output configuration query assets.
 message QueryAssetsOutputConfig {
-  // {{bigquery_name}} destination.
+  // BigQuery destination.
   message BigQueryDestination {
-    // Required. The {{bigquery_name}} 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_name}} 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
     // already exists. The following values are supported:
     //
-    // * WRITE_TRUNCATE: If the table or partition already exists,
-    // {{bigquery_name}} overwrites the entire table or all the partitions data.
-    // * WRITE_APPEND: If the table or partition already exists,
-    // {{bigquery_name}} appends the data to the table or the latest partition.
+    // * 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
+    // appends the data to the table or the latest partition.
     // * WRITE_EMPTY: If the table already exists and contains data, a
     // 'duplicate' error is returned in the job result.
     //
@@ -1820,7 +1742,7 @@ message QueryAssetsOutputConfig {
     string write_disposition = 3;
   }
 
-  // {{bigquery_name}} destination where the query results will be saved.
+  // BigQuery destination where the query results will be saved.
   BigQueryDestination bigquery_destination = 1;
 }
 
@@ -1840,18 +1762,17 @@ message QueryAssetsRequest {
   ];
 
   oneof query {
-    // Optional. A SQL statement that's compatible with [{{bigquery_name}}
-    // Standard
+    // 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];
 
-    // 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.
@@ -1864,13 +1785,12 @@ 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_name}} [jobs.query
+  // 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
   // returns after around 200 seconds (200,000 milliseconds), even if the query
@@ -1887,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.
@@ -1907,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.
@@ -1939,9 +1856,9 @@ message QueryAssetsResponse {
 
 // Execution results of the query.
 //
-// The result is formatted as rows represented by {{bigquery_name}} compatible
-// [schema]. When pagination is necessary, it will contains the page token to
-// retrieve the results of following pages.
+// The result is formatted as rows represented by BigQuery compatible [schema].
+// When pagination is necessary, it will contains the page token to retrieve
+// the results of following pages.
 message QueryResult {
   // Each row hold a query result in the format of `Struct`.
   repeated google.protobuf.Struct rows = 1;
@@ -1956,7 +1873,7 @@ message QueryResult {
   int64 total_rows = 4;
 }
 
-// {{bigquery_name}} Compatible table schema.
+// BigQuery Compatible table schema.
 message TableSchema {
   // Describes the fields in a table.
   repeated TableFieldSchema fields = 1;
@@ -1995,11 +1912,9 @@ 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_name_short}} policies on or below the scope will be
-  // returned.
+  // Required. Only IAM policies on or below the scope will be returned.
   //
   // This can only be an organization number (such as "organizations/123"), a
   // folder number (such as "folders/123"), a project ID (such as
@@ -2012,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]
@@ -2022,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_name_short}} policies on one resource.
+  // The effective IAM policies on one resource.
   message EffectiveIamPolicy {
-    // The {{iam_name_short}} policy and its attached resource.
+    // 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_name_short}} 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_name_short}} 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;
 }
 
@@ -2092,13 +1997,13 @@ enum ContentType {
   // Resource metadata.
   RESOURCE = 1;
 
-  // The actual {{iam_name_short}} policy set on a resource.
+  // The actual IAM policy set on a resource.
   IAM_POLICY = 2;
 
-  // The organization policy set on an asset.
+  // The Cloud Organization Policy set on an asset.
   ORG_POLICY = 4;
 
-  // The {{acm_name}} policy set on an asset.
+  // The Cloud Access context manager Policy set on an asset.
   ACCESS_POLICY = 5;
 
   // The runtime OS Inventory information.
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 82%
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 bee3d2a5794a..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
@@ -36,7 +36,7 @@ option java_outer_classname = "AssetProto";
 option java_package = "com.google.cloud.asset.v1";
 option php_namespace = "Google\\Cloud\\Asset\\V1";
 
-// An asset in {{gcp_name}} and its temporal metadata, including the time window
+// An asset in Google Cloud and its temporal metadata, including the time window
 // when it was observed and its status during that window.
 message TemporalAsset {
   // State of prior asset.
@@ -63,7 +63,7 @@ message TemporalAsset {
   // Whether the asset has been deleted or not.
   bool deleted = 2;
 
-  // An asset in {{gcp_name}}.
+  // An asset in Google Cloud.
   Asset asset = 3;
 
   // State of prior_asset.
@@ -84,13 +84,13 @@ message TimeWindow {
   google.protobuf.Timestamp end_time = 2;
 }
 
-// An asset in {{gcp_name}}. An asset can be any resource in the {{gcp_name}}
+// An asset in Google Cloud. An asset can be any resource in the Google Cloud
 // [resource
 // hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
-// a resource outside the {{gcp_name}} resource hierarchy (such as
-// {{container_name}} clusters and objects), or a policy (e.g.
-// {{iam_name_short}} policy), or a relationship (e.g. an
-// INSTANCE_TO_INSTANCEGROUP relationship). See [Supported asset
+// a resource outside the Google Cloud resource hierarchy (such as Google
+// Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy),
+// or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship).
+// See [Supported asset
 // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
 // for more information.
 message Asset {
@@ -121,15 +121,15 @@ message Asset {
   // A representation of the resource.
   Resource resource = 3;
 
-  // A representation of the {{iam_name_short}} policy set on a {{gcp_name}}
-  // resource. There can be a maximum of one {{iam_name_short}} policy set on
-  // any given resource. In addition, {{iam_name_short}} policies inherit their
-  // granted access scope from any policies set on parent resources in the
-  // resource hierarchy. Therefore, the effectively policy is the union of both
-  // the policy set on this resource and each policy set on all of the
-  // resource's ancestry resource levels in the hierarchy. See [this
-  // topic](https://cloud.google.com/iam/help/allow-policies/inheritance) for
-  // more information.
+  // 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.
+  // In addition, Cloud IAM policies inherit their granted access scope from any
+  // policies set on parent resources in the resource hierarchy. Therefore, the
+  // effectively policy is the union of both the policy set on this resource
+  // and each policy set on all of the resource's ancestry resource levels in
+  // the hierarchy. See
+  // [this topic](https://cloud.google.com/iam/help/allow-policies/inheritance)
+  // for more information.
   google.iam.v1.Policy iam_policy = 4;
 
   // A representation of an [organization
@@ -151,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
@@ -170,7 +169,7 @@ message Asset {
   // One related asset of the current asset.
   RelatedAsset related_asset = 15;
 
-  // The ancestry path of an asset in {{gcp_name}} [resource
+  // The ancestry path of an asset in Google Cloud [resource
   // hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
   // represented as a list of relative resource names. An ancestry path starts
   // with the closest ancestor in the hierarchy and ends at root. If the asset
@@ -181,7 +180,7 @@ message Asset {
   repeated string ancestors = 10;
 }
 
-// A representation of a {{gcp_name}} resource.
+// A representation of a Google Cloud resource.
 message Resource {
   // The API version. Example: `v1`
   string version = 1;
@@ -191,14 +190,14 @@ message Resource {
   // `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest`
   //
   // This value is unspecified for resources that do not have an API based on a
-  // discovery document, such as {{bigtable_name}}.
+  // discovery document, such as Cloud Bigtable.
   string discovery_document_uri = 2;
 
   // The JSON schema name listed in the discovery document. Example:
   // `Project`
   //
   // This value is unspecified for resources that do not have an API based on a
-  // discovery document, such as {{bigtable_name}}.
+  // discovery document, such as Cloud Bigtable.
   string discovery_name = 3;
 
   // The REST URL for accessing the resource. An HTTP `GET` request using this
@@ -213,8 +212,8 @@ message Resource {
   // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
   // for more information.
   //
-  // For {{gcp_name}} assets, this value is the parent resource defined in the
-  // [{{iam_name_short}} policy
+  // For Google Cloud assets, this value is the parent resource defined in the
+  // [Cloud IAM policy
   // hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy).
   // Example:
   // `//cloudresourcemanager.googleapis.com/projects/my_project_123`
@@ -226,7 +225,7 @@ message Resource {
   // and may not be present.
   google.protobuf.Struct data = 6;
 
-  // The location of the resource in {{gcp_name}}, such as its zone and region.
+  // 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;
 }
@@ -267,13 +266,12 @@ message RelationshipAttributes {
   string action = 3;
 }
 
-// An asset identifier in {{gcp_name}} which contains its name, type and
-// ancestors. An asset can be any resource in the {{gcp_name}}
-// [resource
+// An asset identifier in Google Cloud which contains its name, type and
+// ancestors. An asset can be any resource in the Google Cloud [resource
 // hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
-// a resource outside the {{gcp_name}} resource hierarchy (such as
-// {{container_name}} clusters and objects), or a policy (e.g.
-// {{iam_name_short}} policy). See [Supported asset
+// a resource outside the Google Cloud resource hierarchy (such as Google
+// Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
+// See [Supported asset
 // types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
 // for more information.
 message RelatedAsset {
@@ -284,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`
   //
@@ -294,7 +292,7 @@ message RelatedAsset {
   // for more information.
   string asset_type = 2;
 
-  // The ancestors of an asset in {{gcp_name}} [resource
+  // The ancestors of an asset in Google Cloud [resource
   // hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
   // represented as a list of relative resource names. An ancestry path starts
   // with the closest ancestor in the hierarchy and ends at root.
@@ -312,7 +310,7 @@ message RelatedAsset {
 message ResourceSearchResult {
   // The full resource name of this resource. Example:
   // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-  // See [{{cai_name}} Resource Name
+  // See [Cloud Asset Inventory Resource Name
   // Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
   // for more information.
   //
@@ -391,8 +389,7 @@ message ResourceSearchResult {
   // * Use a free text query. Example: `us-west*`
   string location = 6;
 
-  // Labels associated with this resource. See
-  // [Labelling and grouping {{gcp_name}}
+  // 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.
@@ -407,8 +404,7 @@ message ResourceSearchResult {
   map labels = 7;
 
   // Network tags associated with this resource. Like labels, network tags are a
-  // type of annotations used to group {{gcp_name}} resources. See
-  // [Labelling {{gcp_name}}
+  // 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.
@@ -419,16 +415,16 @@ message ResourceSearchResult {
   // * Use a free text query. Example: `internal`
   repeated string network_tags = 8;
 
-  // The {{kms_name_short}}
+  // 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_name_short}} key information.
-  // This field is available only when the resource's Protobuf contains it and
-  // will only be populated for [these resource
+  // 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.
   //
@@ -438,7 +434,7 @@ message ResourceSearchResult {
   // * Use a free text query. Example: `key`
   string kms_key = 10 [deprecated = true];
 
-  // The {{kms_name_short}}
+  // 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)
@@ -489,8 +485,8 @@ message ResourceSearchResult {
   // SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See `status` definition
   // in [API
   // Reference](https://cloud.google.com/compute/docs/reference/rest/v1/instances).
-  // If the resource is a project provided by {{crm_name}}, its state will
-  // include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
+  // If the resource is a project provided by Cloud Resource Manager, its state
+  // will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
   // DELETE_IN_PROGRESS. See `lifecycleState` definition in [API
   // Reference](https://cloud.google.com/resource-manager/reference/rest/v1/projects).
   //
@@ -504,15 +500,15 @@ message ResourceSearchResult {
   // vary from one resource type to another. Examples: `projectId` for Project,
   // `dnsName` for DNS ManagedZone. This field contains a subset of the resource
   // metadata fields that are returned by the List or Get APIs provided by the
-  // corresponding {{gcp_name}} service (e.g., Compute Engine). see
-  // [API references and supported searchable
+  // corresponding GCP service (e.g., Compute Engine). see [API references and
+  // supported searchable
   // attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
   // to see which fields are included.
   //
   // You can search values of these fields through free text search. However,
   // you should not consume the field programically as the field names and
-  // values may change as the {{gcp_name}} service updates to a new incompatible
-  // API version.
+  // values may change as the GCP service updates to a new incompatible API
+  // version.
   //
   // To search against the `additional_attributes`:
   //
@@ -664,12 +660,11 @@ message RelatedResource {
   string full_resource_name = 2;
 }
 
-// A result of {{iam_name_short}} Policy search, containing information of an
-// {{iam_name_short}} policy.
+// A result of IAM Policy search, containing information of an IAM policy.
 message IamPolicySearchResult {
-  // Explanation about the {{iam_name_short}} policy search result.
+  // Explanation about the IAM policy search result.
   message Explanation {
-    // {{iam_name_short}} permissions
+    // IAM permissions
     message Permissions {
       // A list of permissions. A sample permission string: `compute.disk.get`.
       repeated string permissions = 1;
@@ -685,10 +680,10 @@ message IamPolicySearchResult {
     map matched_permissions = 1;
   }
 
-  // The full resource name of the resource associated with this
-  // {{iam_name_short}} policy. Example:
+  // The full resource name of the resource associated with this IAM policy.
+  // Example:
   // `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
-  // See [{{cai_name}} Resource Name
+  // See [Cloud Asset Inventory Resource Name
   // Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
   // for more information.
   //
@@ -697,8 +692,7 @@ message IamPolicySearchResult {
   // * use a field query. Example: `resource:organizations/123`
   string resource = 1;
 
-  // The type of the resource associated with this {{iam_name_short}} policy.
-  // Example:
+  // The type of the resource associated with this IAM policy. Example:
   // `compute.googleapis.com/Disk`.
   //
   // To search against the `asset_type`:
@@ -706,21 +700,19 @@ message IamPolicySearchResult {
   // * specify the `asset_types` field in your search request.
   string asset_type = 5;
 
-  // The project that the associated {{gcp_name}} resource belongs to, in the
-  // form of projects/{PROJECT_NUMBER}. If an {{iam_name_short}} policy is set
-  // on a resource (like VM instance, {{storage_name}} bucket), the project
-  // field will indicate the project that contains the resource. If an
-  // {{iam_name_short}} policy is set on a folder or orgnization, this field
-  // will be empty.
+  // 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
+  // instance, Cloud Storage bucket), the project field will indicate the
+  // project that contains the resource. If an IAM policy is set on a folder or
+  // orgnization, this field will be empty.
   //
   // To search against the `project`:
   //
   // * specify the `scope` field as this project in your search request.
   string project = 2;
 
-  // The folder(s) that the {{iam_name_short}} policy belongs to, in the form of
-  // folders/{FOLDER_NUMBER}. This field is available when the
-  // {{iam_name_short}} policy
+  // The folder(s) that the IAM policy belongs to, in the form of
+  // folders/{FOLDER_NUMBER}. This field is available when the IAM policy
   // belongs to one or more folders.
   //
   // To search against `folders`:
@@ -730,9 +722,9 @@ message IamPolicySearchResult {
   // * specify the `scope` field as this folder in your search request.
   repeated string folders = 6;
 
-  // The organization that the {{iam_name_short}} policy belongs to, in the form
+  // The organization that the IAM policy belongs to, in the form
   // of organizations/{ORGANIZATION_NUMBER}. This field is available when the
-  // {{iam_name_short}} policy belongs to an organization.
+  // IAM policy belongs to an organization.
   //
   // To search against `organization`:
   //
@@ -741,11 +733,10 @@ message IamPolicySearchResult {
   // * specify the `scope` field as this organization in your search request.
   string organization = 7;
 
-  // The {{iam_name_short}} policy directly set on the given resource. Note that
-  // the original {{iam_name_short}} policy can contain multiple bindings. This
-  // only contains the bindings that match the given query. For queries that
-  // don't contain a constrain on policies (e.g., an empty query), this contains
-  // all the bindings.
+  // The IAM policy directly set on the given resource. Note that the original
+  // IAM policy can contain multiple bindings. This only contains the bindings
+  // that match the given query. For queries that don't contain a constrain on
+  // policies (e.g., an empty query), this contains all the bindings.
   //
   // To search against the `policy` bindings:
   //
@@ -758,8 +749,8 @@ message IamPolicySearchResult {
   //       `policy.role.permissions:compute.instances.create`
   google.iam.v1.Policy policy = 3;
 
-  // Explanation about the {{iam_name_short}} policy search result. It contains
-  // additional information to explain why the search result matches the query.
+  // Explanation about the IAM policy search result. It contains additional
+  // information to explain why the search result matches the query.
   Explanation explanation = 4;
 }
 
@@ -801,11 +792,10 @@ message ConditionEvaluation {
   EvaluationValue evaluation_value = 1;
 }
 
-// {{iam_name_short}} Policy analysis result, consisting of one
-// {{iam_name_short}} policy binding and derived
+// IAM Policy analysis result, consisting of one IAM policy binding and derived
 // access control lists.
 message IamPolicyAnalysisResult {
-  // A {{gcp_name}} resource under analysis.
+  // A Google Cloud resource under analysis.
   message Resource {
     // The [full resource
     // name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
@@ -815,7 +805,7 @@ message IamPolicyAnalysisResult {
     IamPolicyAnalysisState analysis_state = 2;
   }
 
-  // An {{iam_name_short}} role or permission under analysis.
+  // An IAM role or permission under analysis.
   message Access {
     oneof oneof_access {
       // The role.
@@ -832,7 +822,7 @@ message IamPolicyAnalysisResult {
   // An identity under analysis.
   message Identity {
     // The identity name in any form of members appear in
-    // [{{iam_name_short}} policy
+    // [IAM policy
     // binding](https://cloud.google.com/iam/reference/rest/v1/Binding), such
     // as:
     // - user:foo@google.com
@@ -859,16 +849,15 @@ message IamPolicyAnalysisResult {
     string target_node = 2;
   }
 
-  // An access control list, derived from the above {{iam_name_short}} policy
-  // binding, which contains a set of resources and accesses. May include one
+  // An access control list, derived from the above IAM policy binding, which
+  // contains a set of resources and accesses. May include one
   // item from each set to compose an access control entry.
   //
-  // NOTICE that there could be multiple access control lists for one
-  // {{iam_name_short}} policy binding. The access control lists are created
-  // based on resource and access combinations.
+  // NOTICE that there could be multiple access control lists for one IAM policy
+  // binding. The access control lists are created based on resource and access
+  // combinations.
   //
-  // For example, assume we have the following cases in one
-  // {{iam_name_short}} policy binding:
+  // For example, assume we have the following cases in one IAM policy binding:
   // - Permission P1 and P2 apply to resource R1 and R2;
   // - Permission P3 applies to resource R2 and R3;
   //
@@ -887,16 +876,14 @@ 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;
 
     // Condition evaluation for this AccessControlList, if there is a condition
-    // defined in the above {{iam_name_short}} policy binding.
+    // defined in the above IAM policy binding.
     ConditionEvaluation condition_evaluation = 4;
   }
 
@@ -909,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 {{iam_name_short}} policy binding under analysis.
+  // 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/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java b/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java
rename to owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/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 89%
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
index c3ad4413836a..b92a03332a9d 100644
--- 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
@@ -178,11 +178,11 @@ public AssetServiceStub getStub() {
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Searches all the resources under a given accessible {{crm_name}} scope
-   * (project/folder/organization). This RPC gives callers especially admins the ability to search
-   * all the resources under a scope, even if they don't have .get permission of all the resources.
-   * Callers should have cloud.assets.SearchAllResources permission on the requested scope,
-   * otherwise it will be rejected.
+   * Searches all the resources under a given accessible CRM scope (project/folder/organization).
+   * This RPC gives callers especially admins the ability to search all the resources under a scope,
+   * even if they don't have .get permission of all the resources. Callers should have
+   * cloud.assets.SearchAllResources permission on the requested scope, otherwise it will be
+   * rejected.
    *
    * 

Sample code: * @@ -230,11 +230,11 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all the resources under a given accessible {{crm_name}} scope - * (project/folder/organization). This RPC gives callers especially admins the ability to search - * all the resources under a scope, even if they don't have .get permission of all the resources. - * Callers should have cloud.assets.SearchAllResources permission on the requested scope, - * otherwise it will be rejected. + * Searches all the resources under a given accessible CRM scope (project/folder/organization). + * This RPC gives callers especially admins the ability to search all the resources under a scope, + * even if they don't have .get permission of all the resources. Callers should have + * cloud.assets.SearchAllResources permission on the requested scope, otherwise it will be + * rejected. * *

Sample code: * @@ -271,11 +271,11 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all the resources under a given accessible {{crm_name}} scope - * (project/folder/organization). This RPC gives callers especially admins the ability to search - * all the resources under a scope, even if they don't have .get permission of all the resources. - * Callers should have cloud.assets.SearchAllResources permission on the requested scope, - * otherwise it will be rejected. + * Searches all the resources under a given accessible CRM scope (project/folder/organization). + * This RPC gives callers especially admins the ability to search all the resources under a scope, + * even if they don't have .get permission of all the resources. Callers should have + * cloud.assets.SearchAllResources permission on the requested scope, otherwise it will be + * rejected. * *

Sample code: * @@ -311,11 +311,11 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all the resources under a given accessible {{crm_name}} scope - * (project/folder/organization). This RPC gives callers especially admins the ability to search - * all the resources under a scope, even if they don't have .get permission of all the resources. - * Callers should have cloud.assets.SearchAllResources permission on the requested scope, - * otherwise it will be rejected. + * Searches all the resources under a given accessible CRM scope (project/folder/organization). + * This RPC gives callers especially admins the ability to search all the resources under a scope, + * even if they don't have .get permission of all the resources. Callers should have + * cloud.assets.SearchAllResources permission on the requested scope, otherwise it will be + * rejected. * *

Sample code: * @@ -358,11 +358,10 @@ public final SearchAllResourcesPagedResponse searchAllResources( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all the {{iam_name_short}} policies under a given accessible {{crm_name}} scope - * (project/folder/organization). This RPC gives callers especially admins the ability to search - * all the {{iam_name_short}} policies under a scope, even if they don't have .getIamPolicy - * permission of all the {{iam_name_short}} policies. Callers should have - * cloud.assets.SearchAllIamPolicies permission on the requested scope, otherwise it will be + * Searches all the IAM policies under a given accessible CRM scope (project/folder/organization). + * This RPC gives callers especially admins the ability to search all the IAM policies under a + * scope, even if they don't have .getIamPolicy permission of all the IAM policies. Callers should + * have cloud.assets.SearchAllIamPolicies permission on the requested scope, otherwise it will be * rejected. * *

Sample code: @@ -408,11 +407,10 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all the {{iam_name_short}} policies under a given accessible {{crm_name}} scope - * (project/folder/organization). This RPC gives callers especially admins the ability to search - * all the {{iam_name_short}} policies under a scope, even if they don't have .getIamPolicy - * permission of all the {{iam_name_short}} policies. Callers should have - * cloud.assets.SearchAllIamPolicies permission on the requested scope, otherwise it will be + * Searches all the IAM policies under a given accessible CRM scope (project/folder/organization). + * This RPC gives callers especially admins the ability to search all the IAM policies under a + * scope, even if they don't have .getIamPolicy permission of all the IAM policies. Callers should + * have cloud.assets.SearchAllIamPolicies permission on the requested scope, otherwise it will be * rejected. * *

Sample code: @@ -448,11 +446,10 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all the {{iam_name_short}} policies under a given accessible {{crm_name}} scope - * (project/folder/organization). This RPC gives callers especially admins the ability to search - * all the {{iam_name_short}} policies under a scope, even if they don't have .getIamPolicy - * permission of all the {{iam_name_short}} policies. Callers should have - * cloud.assets.SearchAllIamPolicies permission on the requested scope, otherwise it will be + * Searches all the IAM policies under a given accessible CRM scope (project/folder/organization). + * This RPC gives callers especially admins the ability to search all the IAM policies under a + * scope, even if they don't have .getIamPolicy permission of all the IAM policies. Callers should + * have cloud.assets.SearchAllIamPolicies permission on the requested scope, otherwise it will be * rejected. * *

Sample code: @@ -487,11 +484,10 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches all the {{iam_name_short}} policies under a given accessible {{crm_name}} scope - * (project/folder/organization). This RPC gives callers especially admins the ability to search - * all the {{iam_name_short}} policies under a scope, even if they don't have .getIamPolicy - * permission of all the {{iam_name_short}} policies. Callers should have - * cloud.assets.SearchAllIamPolicies permission on the requested scope, otherwise it will be + * Searches all the IAM policies under a given accessible CRM scope (project/folder/organization). + * This RPC gives callers especially admins the ability to search all the IAM policies under a + * scope, even if they don't have .getIamPolicy permission of all the IAM policies. Callers should + * have cloud.assets.SearchAllIamPolicies permission on the requested scope, otherwise it will be * rejected. * *

Sample code: 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/owl-bot-staging/java-asset/v1p1beta1/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 new file mode 100644 index 000000000000..73fe8769d725 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p1beta1/grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java @@ -0,0 +1,429 @@ +package com.google.cloud.asset.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Asset service definition.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/asset/v1p1beta1/asset_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AssetServiceGrpc { + + 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; + + @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; + 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(); + } + } + } + return getSearchAllResourcesMethod; + } + + 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 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(); + } + } + } + return getSearchAllIamPoliciesMethod; + } + + /** + * 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 { + + /** + *
+     * Searches all the resources under a given accessible CRM scope
+     * (project/folder/organization). This RPC gives callers
+     * especially admins the ability to search all the resources under a scope,
+     * even if they don't have .get permission of all the resources. Callers
+     * should have cloud.assets.SearchAllResources permission on the requested
+     * 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); + } + + /** + *
+     * Searches all the IAM policies under a given accessible CRM scope
+     * (project/folder/organization). This RPC gives callers
+     * especially admins the ability to search all the IAM policies under a scope,
+     * even if they don't have .getIamPolicy permission of all the IAM policies.
+     * Callers should have cloud.assets.SearchAllIamPolicies permission on the
+     * 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); + } + + @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))) + .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))) + .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); + } + + /** + *
+     * Searches all the resources under a given accessible CRM scope
+     * (project/folder/organization). This RPC gives callers
+     * especially admins the ability to search all the resources under a scope,
+     * even if they don't have .get permission of all the resources. Callers
+     * should have cloud.assets.SearchAllResources permission on the requested
+     * scope, otherwise it will be rejected.
+     * 
+ */ + 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); + } + + /** + *
+     * Searches all the IAM policies under a given accessible CRM scope
+     * (project/folder/organization). This RPC gives callers
+     * especially admins the ability to search all the IAM policies under a scope,
+     * even if they don't have .getIamPolicy permission of all the IAM policies.
+     * Callers should have cloud.assets.SearchAllIamPolicies permission on the
+     * 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.ClientCalls.asyncUnaryCall( + 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) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Searches all the resources under a given accessible CRM scope
+     * (project/folder/organization). This RPC gives callers
+     * especially admins the ability to search all the resources under a scope,
+     * even if they don't have .get permission of all the resources. Callers
+     * should have cloud.assets.SearchAllResources permission on the requested
+     * scope, otherwise it will be rejected.
+     * 
+ */ + 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
+     * especially admins the ability to search all the IAM policies under a scope,
+     * even if they don't have .getIamPolicy permission of all the IAM policies.
+     * Callers should have cloud.assets.SearchAllIamPolicies permission on the
+     * requested scope, otherwise it will be rejected.
+     * 
+ */ + 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) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssetServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssetServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Searches all the resources under a given accessible CRM scope
+     * (project/folder/organization). This RPC gives callers
+     * especially admins the ability to search all the resources under a scope,
+     * even if they don't have .get permission of all the resources. Callers
+     * should have cloud.assets.SearchAllResources permission on the requested
+     * scope, otherwise it will be rejected.
+     * 
+ */ + 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
+     * especially admins the ability to search all the IAM policies under a scope,
+     * even if they don't have .getIamPolicy permission of all the IAM policies.
+     * Callers should have cloud.assets.SearchAllIamPolicies permission on the
+     * requested scope, otherwise it will be rejected.
+     * 
+ */ + 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); + } + } + + 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 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_SEARCH_ALL_RESOURCES: + 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) 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.v1p1beta1.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(getSearchAllResourcesMethod()) + .addMethod(getSearchAllIamPoliciesMethod()) + .build(); + } + } + } + return result; + } +} 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 59% 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 0f9150e4eaba..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_name_short}} Policy search.
+ * 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,38 +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; } - - 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:
@@ -84,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:
@@ -99,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:
@@ -118,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:
@@ -134,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:
@@ -154,93 +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_name_short}} policy search result.
+   * 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> - 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); @@ -252,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:
@@ -262,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:
@@ -290,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:
@@ -309,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:
@@ -333,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)) { @@ -351,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; @@ -363,8 +310,10 @@ 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, @@ -378,16 +327,15 @@ 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; @@ -397,16 +345,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.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; } @@ -428,95 +375,87 @@ 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 @@ -526,62 +465,61 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result.
+     * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -590,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 @@ -613,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(); @@ -626,54 +561,48 @@ 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; @@ -700,26 +629,20 @@ public Builder mergeFrom( case 0: done = true; break; - 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: + 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) { @@ -729,32 +652,24 @@ 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< - 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(); @@ -766,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:
@@ -776,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:
@@ -804,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:
@@ -823,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:
@@ -847,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)) { @@ -865,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:
@@ -879,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:
@@ -906,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:
@@ -932,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) { @@ -953,44 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1002,25 +898,22 @@ 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)
-   * of the resource associated with this {{iam_name_short}} policy.
+   * of the resource associated with this IAM policy.
    * 
* * string resource = 1; - * * @return The resource. */ @java.lang.Override @@ -1029,31 +922,31 @@ 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)
-   * of the resource associated with this {{iam_name_short}} policy.
+   * of the resource associated with this IAM policy.
    * 
* * 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 { @@ -1064,19 +957,15 @@ 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_name}} resource belongs to, in the
-   * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-   * on a resource (like VM instance, {{storage_name}} bucket), the project
-   * field will indicate the project that contains the resource. If an
-   * {{iam_name_short}} policy is set on a folder or orgnization, the project
-   * field will be empty.
+   * 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
+   * instance, Cloud Storage bucket), the project field will indicate the
+   * project that contains the resource. If an IAM policy is set on a folder or
+   * orgnization, the project field will be empty.
    * 
* * string project = 3; - * * @return The project. */ @java.lang.Override @@ -1085,34 +974,33 @@ 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_name}} resource belongs to, in the
-   * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-   * on a resource (like VM instance, {{storage_name}} bucket), the project
-   * field will indicate the project that contains the resource. If an
-   * {{iam_name_short}} policy is set on a folder or orgnization, the project
-   * field will be empty.
+   * 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
+   * instance, Cloud Storage bucket), the project field will indicate the
+   * project that contains the resource. If an IAM policy is set on a folder or
+   * orgnization, the project field will be empty.
    * 
* * 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 { @@ -1123,18 +1011,14 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int POLICY_FIELD_NUMBER = 4; private com.google.iam.v1.Policy policy_; /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g. an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g. an empty query), this contains all the bindings.
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ @java.lang.Override @@ -1142,18 +1026,14 @@ public boolean hasPolicy() { return policy_ != null; } /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g. an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g. an empty query), this contains all the bindings.
    * 
* * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ @java.lang.Override @@ -1161,14 +1041,11 @@ public com.google.iam.v1.Policy getPolicy() { return policy_ == null ? com.google.iam.v1.Policy.getDefaultInstance() : policy_; } /** - * - * *
-   * The {{iam_name_short}} policy directly set on the given resource. Note that
-   * the original {{iam_name_short}} policy can contain multiple bindings. This
-   * only contains the bindings that match the given query. For queries that
-   * don't contain a constrain on policies (e.g. an empty query), this contains
-   * all the bindings.
+   * The IAM policy directly set on the given resource. Note that the original
+   * IAM policy can contain multiple bindings. This only contains the bindings
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g. an empty query), this contains all the bindings.
    * 
* * .google.iam.v1.Policy policy = 4; @@ -1181,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_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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 @@ -1197,41 +1071,32 @@ public boolean hasExplanation() { return explanation_ != null; } /** - * - * *
-   * Explanation about the {{iam_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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_name_short}} policy search result. It contains
-   * additional information to explain why the search result matches the query.
+   * 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; */ @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; @@ -1243,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_); } @@ -1272,10 +1138,12 @@ 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; @@ -1285,23 +1153,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.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; @@ -1332,136 +1203,129 @@ 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_name_short}} Policy search.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1485,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 @@ -1506,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) { @@ -1528,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; @@ -1568,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(); @@ -1610,37 +1471,36 @@ 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) { @@ -1653,22 +1513,20 @@ public Builder mergeFrom( private java.lang.Object resource_ = ""; /** - * - * *
      * The [full resource
      * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
-     * of the resource associated with this {{iam_name_short}} policy.
+     * of the resource associated with this IAM policy.
      * 
* * 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; @@ -1677,23 +1535,22 @@ public java.lang.String getResource() { } } /** - * - * *
      * The [full resource
      * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
-     * of the resource associated with this {{iam_name_short}} policy.
+     * of the resource associated with this IAM policy.
      * 
* * 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 { @@ -1701,67 +1558,60 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * The [full resource
      * name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
-     * of the resource associated with this {{iam_name_short}} policy.
+     * of the resource associated with this IAM policy.
      * 
* * 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)
-     * of the resource associated with this {{iam_name_short}} policy.
+     * of the resource associated with this IAM policy.
      * 
* * 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)
-     * of the resource associated with this {{iam_name_short}} policy.
+     * of the resource associated with this IAM policy.
      * 
* * 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; @@ -1769,25 +1619,22 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
-     * The project that the associated {{gcp_name}} resource belongs to, in the
-     * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, the project
-     * field will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, the project field will be empty.
      * 
* * 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; @@ -1796,26 +1643,24 @@ public java.lang.String getProject() { } } /** - * - * *
-     * The project that the associated {{gcp_name}} resource belongs to, in the
-     * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, the project
-     * field will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, the project field will be empty.
      * 
* * 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 { @@ -1823,76 +1668,66 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
-     * The project that the associated {{gcp_name}} resource belongs to, in the
-     * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, the project
-     * field will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, the project field will be empty.
      * 
* * 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_name}} resource belongs to, in the
-     * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, the project
-     * field will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, the project field will be empty.
      * 
* * string project = 3; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
-     * The project that the associated {{gcp_name}} resource belongs to, in the
-     * form of `projects/{project_number}`. If an {{iam_name_short}} policy is set
-     * on a resource (like VM instance, {{storage_name}} bucket), the project
-     * field will indicate the project that contains the resource. If an
-     * {{iam_name_short}} policy is set on a folder or orgnization, the project
-     * field will be empty.
+     * 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
+     * instance, Cloud Storage bucket), the project field will indicate the
+     * project that contains the resource. If an IAM policy is set on a folder or
+     * orgnization, the project field will be empty.
      * 
* * 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; @@ -1900,41 +1735,30 @@ 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_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .google.iam.v1.Policy policy = 4; - * * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** - * - * *
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .google.iam.v1.Policy policy = 4; - * * @return The policy. */ public com.google.iam.v1.Policy getPolicy() { @@ -1945,14 +1769,11 @@ public com.google.iam.v1.Policy getPolicy() { } } /** - * - * *
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .google.iam.v1.Policy policy = 4; @@ -1971,19 +1792,17 @@ public Builder setPolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .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(); @@ -1994,14 +1813,11 @@ public Builder setPolicy(com.google.iam.v1.Policy.Builder builderForValue) { return this; } /** - * - * *
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .google.iam.v1.Policy policy = 4; @@ -2009,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; } @@ -2021,14 +1838,11 @@ public Builder mergePolicy(com.google.iam.v1.Policy value) { return this; } /** - * - * *
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .google.iam.v1.Policy policy = 4; @@ -2045,32 +1859,26 @@ public Builder clearPolicy() { return this; } /** - * - * *
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .google.iam.v1.Policy policy = 4; */ public com.google.iam.v1.Policy.Builder getPolicyBuilder() { - + onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** - * - * *
-     * The {{iam_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .google.iam.v1.Policy policy = 4; @@ -2079,33 +1887,29 @@ 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_name_short}} policy directly set on the given resource. Note that
-     * the original {{iam_name_short}} policy can contain multiple bindings. This
-     * only contains the bindings that match the given query. For queries that
-     * don't contain a constrain on policies (e.g. an empty query), this contains
-     * all the bindings.
+     * The IAM policy directly set on the given resource. Note that the original
+     * IAM policy can contain multiple bindings. This only contains the bindings
+     * that match the given query. For queries that don't contain a constrain on
+     * policies (e.g. an empty query), this contains all the bindings.
      * 
* * .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_; @@ -2113,59 +1917,44 @@ 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ - 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(); @@ -2179,18 +1968,15 @@ public Builder setExplanation( return this; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ 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(); @@ -2201,24 +1987,18 @@ public Builder setExplanation( return this; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ - 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; } @@ -2230,11 +2010,9 @@ public Builder mergeExplanation( return this; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; @@ -2251,71 +2029,58 @@ public Builder clearExplanation() { return this; } /** - * - * *
-     * Explanation about the {{iam_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ - 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ - 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_name_short}} policy search result. It contains
-     * additional information to explain why the search result matches the query.
+     * 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; */ 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); } @@ -2325,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(); } @@ -2339,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2374,4 +2139,6 @@ 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/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java new file mode 100644 index 000000000000..66b38341f7d0 --- /dev/null +++ b/owl-bot-staging/java-asset/v1p1beta1/proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResultOrBuilder.java @@ -0,0 +1,127 @@ +// 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 + // @@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)
+   * of the resource associated with this IAM policy.
+   * 
+ * + * 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)
+   * of the resource associated with this IAM policy.
+   * 
+ * + * string resource = 1; + * @return The bytes for resource. + */ + 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
+   * instance, Cloud Storage bucket), the project field will indicate the
+   * project that contains the resource. If an IAM policy is set on a folder or
+   * orgnization, the project field will be empty.
+   * 
+ * + * 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
+   * instance, Cloud Storage bucket), the project field will indicate the
+   * project that contains the resource. If an IAM policy is set on a folder or
+   * orgnization, the project field will be empty.
+   * 
+ * + * string project = 3; + * @return The bytes for project. + */ + 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
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g. an empty query), this contains all the bindings.
+   * 
+ * + * .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
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g. an empty query), this contains all the bindings.
+   * 
+ * + * .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
+   * that match the given query. For queries that don't contain a constrain on
+   * policies (e.g. an empty query), this contains all the bindings.
+   * 
+ * + * .google.iam.v1.Policy policy = 4; + */ + 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.
+   * 
+ * + * .google.cloud.asset.v1p1beta1.IamPolicySearchResult.Explanation explanation = 5; + */ + 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 67% 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 7f1963ad9618..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,111 +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_name_short}} permissions
+ * 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. */ @@ -113,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; @@ -141,7 +111,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 < permissions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, permissions_.getRaw(i)); } @@ -170,15 +141,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; } @@ -199,136 +170,130 @@ 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_name_short}} permissions
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,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 @@ -359,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(); @@ -375,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; @@ -452,20 +415,18 @@ 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) { @@ -475,55 +436,44 @@ 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. */ @@ -531,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() { @@ -624,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); } @@ -657,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(); } @@ -671,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -706,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 64% 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 5083bbe67aa4..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_name_short}} policies request.
+ * 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,38 +27,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:
+   * Required. The relative name of an asset. The search is limited to the resources
+   * within the `scope`. The allowed value must be:
    * * Organization number (such as "organizations/123")
    * * Folder number(such as "folders/1234")
    * * Project number (such as "projects/12345")
@@ -84,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 @@ -93,18 +71,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 an asset. The search is limited to the
-   * resources within the `scope`. The allowed value must be:
+   * Required. The relative name of an asset. The search is limited to the resources
+   * within the `scope`. The allowed value must be:
    * * Organization number (such as "organizations/123")
    * * Folder number(such as "folders/1234")
    * * Project number (such as "projects/12345")
@@ -112,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 { @@ -131,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:
@@ -141,7 +117,6 @@ public com.google.protobuf.ByteString getScopeBytes() {
    * 
* * string query = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The query. */ @java.lang.Override @@ -150,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:
@@ -167,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 { @@ -186,18 +161,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 @@ -208,17 +179,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 @@ -227,32 +195,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 { @@ -261,7 +229,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,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_); } @@ -302,7 +270,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_); @@ -315,18 +284,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.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; } @@ -352,136 +324,129 @@ 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_name_short}} policies request.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -497,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(); } @@ -519,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_; @@ -533,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; @@ -573,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(); @@ -617,37 +577,32 @@ 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) { @@ -660,11 +615,9 @@ 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:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -672,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; @@ -687,11 +640,9 @@ 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:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -699,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 { @@ -714,11 +666,9 @@ 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:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -726,25 +676,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 an asset. The search is limited to the
-     * resources within the `scope`. The allowed value must be:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -752,21 +700,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 an asset. The search is limited to the
-     * resources within the `scope`. The allowed value must be:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -774,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; @@ -791,8 +736,6 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { private java.lang.Object query_ = ""; /** - * - * *
      * Optional. The query statement.
      * Examples:
@@ -801,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; @@ -816,8 +759,6 @@ public java.lang.String getQuery() { } } /** - * - * *
      * Optional. The query statement.
      * Examples:
@@ -826,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 { @@ -841,8 +783,6 @@ public com.google.protobuf.ByteString getQueryBytes() { } } /** - * - * *
      * Optional. The query statement.
      * Examples:
@@ -851,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:
@@ -875,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:
@@ -895,35 +830,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 @@ -931,44 +862,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; @@ -976,23 +899,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; @@ -1001,24 +922,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 { @@ -1026,77 +946,70 @@ 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; } - @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); } @@ -1106,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(); } @@ -1121,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1156,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 58% 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 64d0e8e22888..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,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/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:
+   * Required. The relative name of an asset. The search is limited to the resources
+   * within the `scope`. The allowed value must be:
    * * Organization number (such as "organizations/123")
    * * Folder number(such as "folders/1234")
    * * Project number (such as "projects/12345")
@@ -36,16 +18,13 @@ 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:
+   * Required. The relative name of an asset. The search is limited to the resources
+   * within the `scope`. The allowed value must be:
    * * Organization number (such as "organizations/123")
    * * Folder number(such as "folders/1234")
    * * Project number (such as "projects/12345")
@@ -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,56 +58,47 @@ 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(); } 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 63% 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 ffa727a055a2..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_name_short}} policies response.
+ * 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,39 +26,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 {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -86,28 +64,22 @@ public java.util.List ge return results_; } /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * 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 {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -117,12 +89,9 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -132,12 +101,9 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int ind return results_.get(index); } /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -151,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
@@ -160,7 +124,6 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -169,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
@@ -185,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 { @@ -202,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +176,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 < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -231,7 +194,8 @@ 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_); @@ -244,16 +208,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.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; } @@ -277,136 +242,129 @@ 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_name_short}} policies response.
+   * 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +381,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_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(); } @@ -445,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)) { @@ -466,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; @@ -506,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()) { @@ -527,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_); } @@ -566,33 +518,30 @@ 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) { @@ -602,34 +551,24 @@ 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -642,12 +581,9 @@ public java.util.List ge } } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -660,12 +596,9 @@ public int getResultsCount() { } } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -678,12 +611,9 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int ind } } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -703,12 +633,9 @@ public Builder setResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -725,12 +652,9 @@ public Builder setResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -749,12 +673,9 @@ public Builder addResults(com.google.cloud.asset.v1p1beta1.IamPolicySearchResult return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -774,12 +695,9 @@ public Builder addResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -796,12 +714,9 @@ public Builder addResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -818,22 +733,19 @@ public Builder addResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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); @@ -841,12 +753,9 @@ public Builder addAllResults( return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -862,12 +771,9 @@ public Builder clearResults() { return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -883,12 +789,9 @@ public Builder removeResults(int index) { return this; } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -898,12 +801,9 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResult.Builder getResults return getResultsFieldBuilder().getBuilder(index); } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; @@ -911,24 +811,20 @@ 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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 { @@ -936,65 +832,52 @@ public com.google.cloud.asset.v1p1beta1.IamPolicySearchResultOrBuilder getResult } } /** - * - * *
-     * A list of {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; */ 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 {{iam_name_short}} policies that match the search query. Related
-     * information such as the associated resource is returned along with the
-     * policy.
+     * A list of IamPolicy that match the search query. Related information such
+     * as the associated resource is returned along with the policy.
      * 
* * 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_; @@ -1002,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
@@ -1011,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; @@ -1026,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
@@ -1035,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 { @@ -1050,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
@@ -1059,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
@@ -1082,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
@@ -1101,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); } @@ -1127,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(); } @@ -1142,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1177,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 52% 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 65e71d3a9f2e..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,93 +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/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 {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; */ - java.util.List getResultsList(); + java.util.List + getResultsList(); /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; */ com.google.cloud.asset.v1p1beta1.IamPolicySearchResult getResults(int index); /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; */ int getResultsCount(); /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * repeated .google.cloud.asset.v1p1beta1.IamPolicySearchResult results = 1; */ - java.util.List + java.util.List getResultsOrBuilderList(); /** - * - * *
-   * A list of {{iam_name_short}} policies that match the search query. Related
-   * information such as the associated resource is returned along with the
-   * policy.
+   * A list of IamPolicy that match the search query. Related information such
+   * as the associated resource is returned along with the policy.
    * 
* * 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
@@ -95,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
@@ -109,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 65% 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 5d770a7b5361..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,38 +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; } - - 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:
+   * Required. The relative name of an asset. The search is limited to the resources
+   * within the `scope`. The allowed value must be:
    * * Organization number (such as "organizations/123")
    * * Folder number(such as "folders/1234")
    * * Project number (such as "projects/12345")
@@ -86,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 @@ -95,18 +73,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 an asset. The search is limited to the
-   * resources within the `scope`. The allowed value must be:
+   * Required. The relative name of an asset. The search is limited to the resources
+   * within the `scope`. The allowed value must be:
    * * Organization number (such as "organizations/123")
    * * Folder number(such as "folders/1234")
    * * Project number (such as "projects/12345")
@@ -114,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 { @@ -133,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 @@ -149,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 { @@ -182,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.
+   * 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.
+   * 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.
+   * 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. */ @@ -228,37 +195,31 @@ 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.
+   * 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 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 @@ -269,17 +230,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 @@ -288,32 +246,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 { @@ -324,17 +282,14 @@ 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 to indicate descending order. Redundant space characters are ignored.
-   * For example, "  foo ,  bar  desc  ".
+   * 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. For
+   * example, "  foo ,  bar  desc  ".
    * 
* * string order_by = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -343,32 +298,32 @@ 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.
-   * For example, "  foo ,  bar  desc  ".
+   * 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. For
+   * example, "  foo ,  bar  desc  ".
    * 
* * 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 { @@ -377,7 +332,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,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_); } @@ -432,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_); @@ -448,20 +404,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.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; } @@ -493,136 +454,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -642,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 @@ -663,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_; @@ -684,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; @@ -724,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(); @@ -781,50 +732,43 @@ 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) { @@ -834,16 +778,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:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -851,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; @@ -866,11 +807,9 @@ 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:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -878,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 { @@ -893,11 +833,9 @@ 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:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -905,25 +843,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 an asset. The search is limited to the
-     * resources within the `scope`. The allowed value must be:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -931,21 +867,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 an asset. The search is limited to the
-     * resources within the `scope`. The allowed value must be:
+     * Required. The relative name of an asset. The search is limited to the resources
+     * within the `scope`. The allowed value must be:
      * * Organization number (such as "organizations/123")
      * * Folder number(such as "folders/1234")
      * * Project number (such as "projects/12345")
@@ -953,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; @@ -970,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; @@ -992,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 { @@ -1014,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.
+     * 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.
+     * 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.
+     * 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. */ @@ -1130,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.
+     * 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.
+     * 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.
+     * 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.
+     * 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.
+     * 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() { @@ -1228,43 +1131,37 @@ 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.
+     * 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 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 @@ -1272,44 +1169,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; @@ -1317,23 +1206,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; @@ -1342,24 +1229,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 { @@ -1367,70 +1253,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; @@ -1438,23 +1317,21 @@ 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.
-     * For example, "  foo ,  bar  desc  ".
+     * 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. For
+     * example, "  foo ,  bar  desc  ".
      * 
* * 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; @@ -1463,24 +1340,23 @@ 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.
-     * For example, "  foo ,  bar  desc  ".
+     * 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. For
+     * example, "  foo ,  bar  desc  ".
      * 
* * 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 { @@ -1488,77 +1364,70 @@ 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.
-     * For example, "  foo ,  bar  desc  ".
+     * 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. For
+     * example, "  foo ,  bar  desc  ".
      * 
* * 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 to indicate descending order. Redundant space characters are ignored.
-     * For example, "  foo ,  bar  desc  ".
+     * 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. For
+     * example, "  foo ,  bar  desc  ".
      * 
* * 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 to indicate descending order. Redundant space characters are ignored.
-     * For example, "  foo ,  bar  desc  ".
+     * 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. For
+     * example, "  foo ,  bar  desc  ".
      * 
* * 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); } @@ -1568,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(); } @@ -1582,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1617,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 58% 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 6f6da86f747c..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,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/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:
+   * Required. The relative name of an asset. The search is limited to the resources
+   * within the `scope`. The allowed value must be:
    * * Organization number (such as "organizations/123")
    * * Folder number(such as "folders/1234")
    * * Project number (such as "projects/12345")
@@ -36,16 +18,13 @@ 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:
+   * Required. The relative name of an asset. The search is limited to the resources
+   * within the `scope`. The allowed value must be:
    * * Organization number (such as "organizations/123")
    * * Folder number(such as "folders/1234")
    * * Project number (such as "projects/12345")
@@ -53,167 +32,138 @@ 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.
+   * 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.
+   * 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.
+   * 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.
+   * 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 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.
-   * For example, "  foo ,  bar  desc  ".
+   * 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. For
+   * example, "  foo ,  bar  desc  ".
    * 
* * 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 to indicate descending order. Redundant space characters are ignored.
-   * For example, "  foo ,  bar  desc  ".
+   * 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. For
+   * example, "  foo ,  bar  desc  ".
    * 
* * 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 72% 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 fb5e99395fa4..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,35 +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; } - - 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.
    * 
@@ -80,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.
    * 
@@ -94,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.
    * 
@@ -113,8 +86,6 @@ public int getResultsCount() { return results_.size(); } /** - * - * *
    * A list of resource that match the search query.
    * 
@@ -126,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.
    * 
@@ -143,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
@@ -152,7 +119,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -161,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
@@ -177,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 { @@ -194,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +171,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 < results_.size(); i++) { output.writeMessage(1, results_.get(i)); } @@ -223,7 +189,8 @@ 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_); @@ -236,16 +203,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.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; } @@ -269,136 +237,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +376,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 @@ -436,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)) { @@ -457,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; @@ -497,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()) { @@ -517,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_); } @@ -556,33 +513,30 @@ 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) { @@ -592,38 +546,28 @@ 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 { @@ -631,8 +575,6 @@ private void ensureResultsIsMutable() { } } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -647,8 +589,6 @@ public int getResultsCount() { } } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -663,8 +603,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadata getResults(int } } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -686,8 +624,6 @@ public Builder setResults( return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -695,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()); @@ -707,8 +642,6 @@ public Builder setResults( return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -729,8 +662,6 @@ public Builder addResults(com.google.cloud.asset.v1p1beta1.StandardResourceMetad return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -752,8 +683,6 @@ public Builder addResults( return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -772,8 +701,6 @@ public Builder addResults( return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -781,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()); @@ -793,8 +719,6 @@ public Builder addResults( return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -802,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); @@ -814,8 +738,6 @@ public Builder addAllResults( return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -833,8 +755,6 @@ public Builder clearResults() { return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -852,8 +772,6 @@ public Builder removeResults(int index) { return this; } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -865,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.
      * 
@@ -876,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 { @@ -900,8 +812,6 @@ public com.google.cloud.asset.v1p1beta1.StandardResourceMetadataOrBuilder getRes } } /** - * - * *
      * A list of resource that match the search query.
      * 
@@ -909,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.
      * 
@@ -924,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_; @@ -962,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
@@ -971,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; @@ -986,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
@@ -995,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 { @@ -1010,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
@@ -1019,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
@@ -1042,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
@@ -1061,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); } @@ -1087,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(); } @@ -1101,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1136,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 70% 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 d13ee962dc8d..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,46 +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; } - - 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`.
@@ -99,7 +79,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -108,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`.
@@ -126,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 { @@ -145,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 @@ -162,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 { @@ -196,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 @@ -213,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 { @@ -247,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 @@ -263,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 { @@ -296,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 @@ -313,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 { @@ -347,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.
@@ -356,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.
@@ -372,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.
@@ -388,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. */ @@ -396,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.
@@ -405,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 @@ -433,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 { @@ -465,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, - ""); + 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 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_; } @@ -490,36 +445,32 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
-   * Labels associated with this resource. See [Labelling and grouping
-   * {{gcp_name}}
+   * 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.
    * 
* * 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_name}}
+   * 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.
    * 
@@ -527,15 +478,13 @@ 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_name}}
+   * 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.
    * 
@@ -543,19 +492,18 @@ 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_name}}
+   * 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.
    * 
@@ -563,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(); } @@ -577,54 +526,43 @@ 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * type of annotations used to group GCP resources. See [Labelling GCP
    * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    * for more information.
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * type of annotations used to group GCP resources. See [Labelling GCP
    * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    * for more information.
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * type of annotations used to group GCP resources. See [Labelling GCP
    * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    * for more information.
    * 
* * repeated string network_tags = 13; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -632,27 +570,23 @@ 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * type of annotations used to group GCP resources. See [Labelling GCP
    * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    * for more information.
    * 
* * 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; @@ -664,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_); } @@ -681,14 +616,17 @@ 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)); } @@ -727,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; @@ -753,23 +691,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.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; } @@ -811,156 +757,151 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -985,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 @@ -1006,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_; @@ -1035,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; @@ -1075,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(); @@ -1111,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_; @@ -1148,74 +1087,62 @@ 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) { @@ -1225,13 +1152,10 @@ 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`.
@@ -1241,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; @@ -1256,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`.
@@ -1267,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 { @@ -1282,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`.
@@ -1293,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`.
@@ -1318,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`.
@@ -1339,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; @@ -1356,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; @@ -1379,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 { @@ -1402,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; @@ -1467,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; @@ -1490,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 { @@ -1513,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; @@ -1578,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; @@ -1600,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 { @@ -1622,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; @@ -1684,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; @@ -1707,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 { @@ -1730,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.
@@ -1812,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.
@@ -1828,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.
@@ -1844,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. */ @@ -1852,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.
@@ -1861,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.
@@ -1878,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.
@@ -1902,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.
@@ -1925,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.
@@ -1945,7 +1802,6 @@ public Builder addAllAdditionalAttributes(java.lang.Iterable v
      * 
* * repeated string additional_attributes = 10; - * * @return This builder for chaining. */ public Builder clearAdditionalAttributes() { @@ -1955,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.
@@ -1964,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(); @@ -1981,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; @@ -2004,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 { @@ -2027,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(); @@ -2116,36 +1961,32 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
-     * Labels associated with this resource. See [Labelling and grouping
-     * {{gcp_name}}
+     * 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.
      * 
* * 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_name}}
+     * 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.
      * 
@@ -2153,15 +1994,13 @@ 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_name}}
+     * 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.
      * 
@@ -2169,20 +2008,18 @@ 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_name}}
+     * 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.
      * 
@@ -2190,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(); } @@ -2202,131 +2040,118 @@ 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_name}}
+     * 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.
      * 
* * 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_name}}
+     * 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.
      * 
* * 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_name}}
+     * 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.
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * repeated string network_tags = 13; - * * @param index The index of the element to return. * @return The networkTags at the given index. */ @@ -2334,110 +2159,95 @@ 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * 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_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * repeated string network_tags = 13; - * * @return This builder for chaining. */ public Builder clearNetworkTags() { @@ -2447,34 +2257,31 @@ public Builder clearNetworkTags() { return this; } /** - * - * *
      * Network tags associated with this resource. Like labels, network tags are a
-     * type of annotations used to group {{gcp_name}} resources. See
-     * [Labelling {{gcp_name}}
+     * type of annotations used to group GCP resources. See [Labelling GCP
      * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
      * for more information.
      * 
* * 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); } @@ -2484,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(); } @@ -2498,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2533,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 76% 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 1ba88618c931..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,45 +164,37 @@ 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_name}}
+   * 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.
    * 
@@ -262,40 +203,36 @@ public interface StandardResourceMetadataOrBuilder */ int getLabelsCount(); /** - * - * *
-   * Labels associated with this resource. See [Labelling and grouping
-   * {{gcp_name}}
+   * 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.
    * 
* * 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_name}}
+   * 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.
    * 
* * map<string, string> labels = 12; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
-   * Labels associated with this resource. See [Labelling and grouping
-   * {{gcp_name}}
+   * 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.
    * 
@@ -304,88 +241,73 @@ 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_name}}
+   * 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.
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * type of annotations used to group GCP resources. See [Labelling GCP
    * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    * for more information.
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * type of annotations used to group GCP resources. See [Labelling GCP
    * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    * for more information.
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * type of annotations used to group GCP resources. See [Labelling GCP
    * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    * for more information.
    * 
* * 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_name}} resources. See
-   * [Labelling {{gcp_name}}
+   * type of annotations used to group GCP resources. See [Labelling GCP
    * resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
    * for more information.
    * 
* * 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 64% 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 index 47d5d5041c7f..d5a0d8c41b7f 100644 --- 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 @@ -31,32 +31,28 @@ option php_namespace = "Google\\Cloud\\Asset\\V1p1beta1"; // 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"; - // Searches all the resources under a given accessible {{crm_name}} scope + // Searches all the resources under a given accessible CRM scope // (project/folder/organization). This RPC gives callers // especially admins the ability to search all the resources under a scope, // even if they don't have .get permission of all the resources. Callers // should have cloud.assets.SearchAllResources permission on the requested // scope, otherwise it will be rejected. - rpc SearchAllResources(SearchAllResourcesRequest) - returns (SearchAllResourcesResponse) { + rpc SearchAllResources(SearchAllResourcesRequest) returns (SearchAllResourcesResponse) { option (google.api.http) = { get: "/v1p1beta1/{scope=*/*}/resources:searchAll" }; option (google.api.method_signature) = "scope,query,asset_types"; } - // Searches all the {{iam_name_short}} policies under a given accessible - // {{crm_name}} scope (project/folder/organization). This RPC gives callers - // especially admins the ability to search all the {{iam_name_short}} policies - // under a scope, even if they don't have .getIamPolicy permission of all the - // {{iam_name_short}} policies. Callers should have - // cloud.assets.SearchAllIamPolicies permission on the requested scope, - // otherwise it will be rejected. - rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest) - returns (SearchAllIamPoliciesResponse) { + // Searches all the IAM policies under a given accessible CRM scope + // (project/folder/organization). This RPC gives callers + // especially admins the ability to search all the IAM policies under a scope, + // even if they don't have .getIamPolicy permission of all the IAM policies. + // Callers should have cloud.assets.SearchAllIamPolicies permission on the + // requested scope, otherwise it will be rejected. + rpc SearchAllIamPolicies(SearchAllIamPoliciesRequest) returns (SearchAllIamPoliciesResponse) { option (google.api.http) = { get: "/v1p1beta1/{scope=*/*}/iamPolicies:searchAll" }; @@ -66,8 +62,8 @@ service AssetService { // Search all resources request. message SearchAllResourcesRequest { - // Required. The relative name of an asset. The search is limited to the - // resources within the `scope`. The allowed value must be: + // Required. The relative name of an asset. The search is limited to the resources + // within the `scope`. The allowed value must be: // * Organization number (such as "organizations/123") // * Folder number(such as "folders/1234") // * Project number (such as "projects/12345") @@ -77,27 +73,26 @@ message SearchAllResourcesRequest { // Optional. The query statement. 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 supported asset types. + // 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]; - // 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. - // For example, " foo , bar desc ". + // 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. For + // example, " foo , bar desc ". string order_by = 10 [(google.api.field_behavior) = OPTIONAL]; } @@ -112,10 +107,10 @@ message SearchAllResourcesResponse { string next_page_token = 2; } -// Search all {{iam_name_short}} policies request. +// Search all IAM policies request. message SearchAllIamPoliciesRequest { - // Required. The relative name of an asset. The search is limited to the - // resources within the `scope`. The allowed value must be: + // Required. The relative name of an asset. The search is limited to the resources + // within the `scope`. The allowed value must be: // * Organization number (such as "organizations/123") // * Folder number(such as "folders/1234") // * Project number (such as "projects/12345") @@ -128,25 +123,23 @@ message SearchAllIamPoliciesRequest { // * "policy:(myuser@mydomain.com viewer)" 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]; } -// Search all {{iam_name_short}} policies response. +// Search all IAM policies response. message SearchAllIamPoliciesResponse { - // A list of {{iam_name_short}} policies that match the search query. Related - // information such as the associated resource is returned along with the - // policy. + // A list of IamPolicy that match the search query. Related information such + // as the associated resource is returned along with the policy. repeated IamPolicySearchResult results = 1; // Set if there are more results than those appearing in this response; to get 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 73% 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 index 963a9ed14c44..c0ac1403acc8 100644 --- 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 @@ -59,23 +59,21 @@ message StandardResourceMetadata { // "us-west1-b". string location = 11; - // Labels associated with this resource. See [Labelling and grouping - // {{gcp_name}} + // 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. map labels = 12; // Network tags associated with this resource. Like labels, network tags are a - // type of annotations used to group {{gcp_name}} resources. See - // [Labelling {{gcp_name}} + // type of annotations used to group GCP resources. See [Labelling GCP // resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources) // for more information. repeated string network_tags = 13; } -// The result for a {{iam_name_short}} Policy search. +// The result for a IAM Policy search. message IamPolicySearchResult { - // Explanation about the {{iam_name_short}} policy search result. + // Explanation about the IAM policy search result. message Explanation { // The map from roles to their included permission matching the permission // query (e.g. containing `policy.role.permissions:`). A sample role string: @@ -87,30 +85,28 @@ message IamPolicySearchResult { // The [full resource // name](https://cloud.google.com/apis/design/resource_names#full_resource_name) - // of the resource associated with this {{iam_name_short}} policy. + // of the resource associated with this IAM policy. string resource = 1; - // The project that the associated {{gcp_name}} resource belongs to, in the - // form of `projects/{project_number}`. If an {{iam_name_short}} policy is set - // on a resource (like VM instance, {{storage_name}} bucket), the project - // field will indicate the project that contains the resource. If an - // {{iam_name_short}} policy is set on a folder or orgnization, the project - // field will be empty. + // 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 + // instance, Cloud Storage bucket), the project field will indicate the + // project that contains the resource. If an IAM policy is set on a folder or + // orgnization, the project field will be empty. string project = 3; - // The {{iam_name_short}} policy directly set on the given resource. Note that - // the original {{iam_name_short}} policy can contain multiple bindings. This - // only contains the bindings that match the given query. For queries that - // don't contain a constrain on policies (e.g. an empty query), this contains - // all the bindings. + // The IAM policy directly set on the given resource. Note that the original + // IAM policy can contain multiple bindings. This only contains the bindings + // that match the given query. For queries that don't contain a constrain on + // policies (e.g. an empty query), this contains all the bindings. google.iam.v1.Policy policy = 4; - // Explanation about the {{iam_name_short}} policy search result. It contains - // additional information to explain why the search result matches the query. + // Explanation about the IAM policy search result. It contains additional + // information to explain why the search result matches the query. Explanation explanation = 5; } -// {{iam_name_short}} permissions +// IAM permissions message Permissions { // A list of permissions. A sample permission string: "compute.disk.get". repeated string permissions = 1; diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java rename to owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/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 75% 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 f49ec70683b0..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,35 +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;
   }
-
-  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`.
@@ -84,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -93,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`.
@@ -111,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 { @@ -130,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 @@ -146,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 { @@ -179,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 @@ -194,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.
    * 
@@ -227,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 @@ -243,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 @@ -259,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.
@@ -276,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
@@ -287,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
@@ -305,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
@@ -323,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. */ @@ -331,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
@@ -342,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; @@ -363,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_); } @@ -395,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; @@ -416,24 +365,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.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; } @@ -466,104 +420,97 @@ 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.
@@ -571,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -622,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
@@ -643,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_;
@@ -671,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;
@@ -762,44 +708,42 @@ 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) {
@@ -809,13 +753,10 @@ 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`.
@@ -825,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; @@ -840,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`.
@@ -851,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 { @@ -866,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`.
@@ -877,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`.
@@ -902,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`.
@@ -923,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; @@ -940,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; @@ -962,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 { @@ -984,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; @@ -1046,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.
      * 
@@ -1107,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(); @@ -1126,8 +1035,6 @@ public Builder setResource(com.google.cloud.asset.v1p2beta1.Resource.Builder bui return this; } /** - * - * *
      * Representation of the resource.
      * 
@@ -1138,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; } @@ -1152,8 +1057,6 @@ public Builder mergeResource(com.google.cloud.asset.v1p2beta1.Resource value) { return this; } /** - * - * *
      * Representation of the resource.
      * 
@@ -1172,8 +1075,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Representation of the resource.
      * 
@@ -1181,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.
      * 
@@ -1198,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.
      * 
@@ -1213,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_; @@ -1231,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() { @@ -1270,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.
@@ -1293,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.
@@ -1302,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();
@@ -1313,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.
@@ -1326,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;
         }
@@ -1338,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.
@@ -1359,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.
@@ -1369,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.
@@ -1387,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.
@@ -1401,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
@@ -1438,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
@@ -1456,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
@@ -1474,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. */ @@ -1482,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
@@ -1493,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
@@ -1512,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
@@ -1538,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
@@ -1563,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
@@ -1585,7 +1435,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
      * 
* * repeated string ancestors = 6; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1595,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
@@ -1606,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); } @@ -1632,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(); } @@ -1646,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1681,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 72% 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 dbe32425d483..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,35 +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; } - - 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
@@ -82,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 @@ -91,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
@@ -109,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 { @@ -128,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 @@ -145,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 { @@ -179,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:
@@ -189,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 @@ -199,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:
@@ -209,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 @@ -219,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:
@@ -229,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() { @@ -238,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; @@ -250,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_); } @@ -276,7 +240,8 @@ 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; @@ -286,19 +251,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.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; @@ -325,135 +292,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -471,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 @@ -492,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) { @@ -509,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; @@ -549,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(); @@ -588,31 +546,29 @@ 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) { @@ -625,8 +581,6 @@ 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
@@ -636,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; @@ -651,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
@@ -662,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 { @@ -677,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
@@ -688,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
@@ -713,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
@@ -734,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; @@ -751,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; @@ -774,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 { @@ -797,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; @@ -862,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:
@@ -877,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:
@@ -896,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() { @@ -909,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:
@@ -919,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) { @@ -936,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:
@@ -946,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(); @@ -960,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:
@@ -970,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; } @@ -991,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:
@@ -1001,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) { @@ -1016,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:
@@ -1026,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:
@@ -1045,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:
@@ -1066,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); } @@ -1097,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(); } @@ -1111,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1146,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 62% 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 6fedeb0980a2..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,69 +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; } - - 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
@@ -71,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 @@ -83,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
@@ -99,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 { @@ -119,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +108,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_); } @@ -155,15 +133,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; } @@ -183,127 +161,125 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -313,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 @@ -334,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; @@ -345,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; @@ -385,8 +359,7 @@ 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(); @@ -417,19 +390,17 @@ 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) { @@ -442,8 +413,6 @@ 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
@@ -451,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; @@ -469,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
@@ -478,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 { @@ -496,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
@@ -505,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
@@ -531,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
@@ -553,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); } @@ -582,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(); } @@ -596,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -631,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 76% 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 dc4c7d01aa2f..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,35 +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;
   }
-
-  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
@@ -89,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 @@ -98,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
@@ -117,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 { @@ -136,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
@@ -150,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
@@ -171,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
@@ -192,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. */ @@ -200,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
@@ -214,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
@@ -238,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
@@ -258,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
@@ -278,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. */ @@ -286,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
@@ -299,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 @@ -366,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() { @@ -403,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; @@ -415,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_); } @@ -425,8 +358,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.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) { @@ -460,12 +392,13 @@ 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; @@ -475,20 +408,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.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; @@ -522,103 +459,97 @@ 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.
@@ -629,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -676,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
@@ -697,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)) {
@@ -725,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;
@@ -822,46 +752,41 @@ 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) {
@@ -871,13 +796,10 @@ 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
@@ -888,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; @@ -903,8 +825,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The format will be
      * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
@@ -915,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 { @@ -930,8 +851,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The format will be
      * projects/{project_number}/feeds/{client-assigned_feed_identifier} or
@@ -942,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
@@ -968,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
@@ -990,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
@@ -1029,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
@@ -1050,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
@@ -1071,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. */ @@ -1079,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
@@ -1093,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
@@ -1115,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
@@ -1144,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
@@ -1172,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
@@ -1197,7 +1092,6 @@ public Builder addAllAssetNames(java.lang.Iterable values) {
      * 
* * repeated string asset_names = 2; - * * @return This builder for chaining. */ public Builder clearAssetNames() { @@ -1207,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
@@ -1221,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
@@ -1259,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
@@ -1279,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
@@ -1299,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. */ @@ -1307,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
@@ -1320,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
@@ -1341,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
@@ -1369,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
@@ -1396,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
@@ -1420,7 +1293,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
      * 
* * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1430,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
@@ -1443,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(); @@ -1460,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. */ @@ -1530,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; @@ -1556,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) { @@ -1626,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) { @@ -1649,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; } @@ -1678,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) { @@ -1701,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); } @@ -1779,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(); } @@ -1793,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1828,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 67% 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 2ff65d94bfad..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,81 +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; } - - 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; } @@ -91,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 @@ -126,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.
    * 
@@ -153,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; @@ -174,7 +141,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 (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p2beta1.PubsubDestination) destination_); } @@ -188,9 +156,8 @@ 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; @@ -200,18 +167,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: @@ -241,135 +208,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +343,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 @@ -403,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_; @@ -421,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; @@ -461,18 +420,15 @@ 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(); @@ -500,20 +456,19 @@ 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) { @@ -523,12 +478,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() { @@ -538,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 @@ -559,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 @@ -584,8 +531,6 @@ public com.google.cloud.asset.v1p2beta1.PubsubDestination getPubsubDestination() } } /** - * - * *
      * Destination on Cloud Pubsub.
      * 
@@ -606,8 +551,6 @@ public Builder setPubsubDestination(com.google.cloud.asset.v1p2beta1.PubsubDesti return this; } /** - * - * *
      * Destination on Cloud Pubsub.
      * 
@@ -626,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; } @@ -660,8 +596,6 @@ public Builder mergePubsubDestination( return this; } /** - * - * *
      * Destination on Cloud Pubsub.
      * 
@@ -685,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.
      * 
@@ -707,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 { @@ -719,8 +647,6 @@ public Builder clearPubsubDestination() { } } /** - * - * *
      * Destination on Cloud Pubsub.
      * 
@@ -728,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); } @@ -763,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(); } @@ -777,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -812,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 68% 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 2dfab0e23344..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,81 +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; } - - 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; } @@ -91,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
@@ -122,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
@@ -140,7 +112,6 @@ public boolean hasUri() {
    * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { @@ -151,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; @@ -160,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
@@ -171,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; } @@ -192,7 +163,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +174,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 (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } @@ -228,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.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: @@ -268,136 +239,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,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 @@ -428,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_; } @@ -442,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; @@ -482,20 +445,17 @@ 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(); @@ -523,20 +483,18 @@ 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) { @@ -546,12 +504,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() { @@ -561,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
@@ -573,7 +530,6 @@ public Builder clearObjectUri() {
      * 
* * string uri = 1; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -581,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
@@ -592,7 +546,6 @@ public boolean hasUri() {
      * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -602,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; @@ -613,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
@@ -624,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; } @@ -645,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
@@ -656,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
@@ -681,7 +630,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -693,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
@@ -704,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); } @@ -730,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(); } @@ -744,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -779,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 63% 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 bce71c0134a3..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,77 +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; } - - 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
@@ -79,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 @@ -91,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
@@ -107,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 { @@ -127,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,7 +112,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_); } @@ -163,15 +137,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; } @@ -190,136 +164,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -329,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 @@ -350,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; @@ -361,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; @@ -401,8 +367,7 @@ 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(); @@ -433,19 +398,17 @@ 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) { @@ -458,8 +421,6 @@ 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
@@ -467,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; @@ -485,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
@@ -494,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 { @@ -512,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
@@ -521,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
@@ -547,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
@@ -569,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); } @@ -598,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(); } @@ -612,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -647,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 67% 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 cdcf0600a2fb..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,77 +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; } - - 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
@@ -79,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 @@ -88,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
@@ -104,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 { @@ -121,7 +99,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +110,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_); } @@ -157,15 +135,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; } @@ -185,135 +163,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,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 @@ -344,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; @@ -355,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; @@ -395,8 +365,7 @@ 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(); @@ -427,19 +396,17 @@ 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) { @@ -452,8 +419,6 @@ 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
@@ -461,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; @@ -476,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
@@ -485,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 { @@ -500,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
@@ -509,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
@@ -532,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
@@ -551,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); } @@ -577,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(); } @@ -591,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -626,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 69% 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 c816df0748f5..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,69 +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; } - - 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.
    * 
@@ -75,8 +58,6 @@ public java.util.List getFeedsList() { return feeds_; } /** - * - * *
    * A list of feeds.
    * 
@@ -84,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.
    * 
@@ -102,8 +81,6 @@ public int getFeedsCount() { return feeds_.size(); } /** - * - * *
    * A list of feeds.
    * 
@@ -115,8 +92,6 @@ public com.google.cloud.asset.v1p2beta1.Feed getFeeds(int index) { return feeds_.get(index); } /** - * - * *
    * A list of feeds.
    * 
@@ -124,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; @@ -141,7 +116,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 < feeds_.size(); i++) { output.writeMessage(1, feeds_.get(i)); } @@ -155,7 +131,8 @@ 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; @@ -165,15 +142,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; } @@ -195,127 +172,125 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +305,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 @@ -351,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)) { @@ -371,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; @@ -411,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()) { @@ -431,10 +403,9 @@ 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_); } @@ -466,26 +437,25 @@ 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) { @@ -495,28 +465,21 @@ 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.
      * 
@@ -531,8 +494,6 @@ public java.util.List getFeedsList() { } } /** - * - * *
      * A list of feeds.
      * 
@@ -547,8 +508,6 @@ public int getFeedsCount() { } } /** - * - * *
      * A list of feeds.
      * 
@@ -563,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(); @@ -585,8 +543,6 @@ public Builder setFeeds(int index, com.google.cloud.asset.v1p2beta1.Feed value) return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -605,8 +561,6 @@ public Builder setFeeds( return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -627,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(); @@ -649,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()); @@ -668,8 +620,6 @@ public Builder addFeeds(com.google.cloud.asset.v1p2beta1.Feed.Builder builderFor return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -688,8 +638,6 @@ public Builder addFeeds( return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -700,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); @@ -708,8 +657,6 @@ public Builder addAllFeeds( return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -727,8 +674,6 @@ public Builder clearFeeds() { return this; } /** - * - * *
      * A list of feeds.
      * 
@@ -746,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 { @@ -791,8 +731,6 @@ public com.google.cloud.asset.v1p2beta1.FeedOrBuilder getFeedsOrBuilder(int inde } } /** - * - * *
      * A list of feeds.
      * 
@@ -800,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); } @@ -857,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(); } @@ -871,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -906,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 68% 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 dea0826795c5..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,81 +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; } - - 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; } @@ -91,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 @@ -126,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.
    * 
@@ -155,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; @@ -173,7 +141,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 (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p2beta1.GcsDestination) destination_); } @@ -187,9 +156,8 @@ 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; @@ -199,18 +167,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: @@ -239,136 +207,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +343,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 @@ -402,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_; @@ -420,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; @@ -462,15 +422,13 @@ 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(); @@ -498,19 +456,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) { @@ -520,12 +478,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() { @@ -535,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 @@ -556,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 @@ -581,8 +531,6 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -603,8 +551,6 @@ public Builder setGcsDestination(com.google.cloud.asset.v1p2beta1.GcsDestination return this; } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -623,8 +569,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -633,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; } @@ -656,8 +596,6 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1p2beta1.GcsDestinati return this; } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -681,8 +619,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -693,8 +629,6 @@ public com.google.cloud.asset.v1p2beta1.GcsDestination.Builder getGcsDestination return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -713,8 +647,6 @@ public com.google.cloud.asset.v1p2beta1.GcsDestinationOrBuilder getGcsDestinatio } } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -722,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); } @@ -757,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(); } @@ -771,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -806,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 65% 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 8481f47acc47..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,84 +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; } - - 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 @@ -87,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 { @@ -119,7 +97,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +108,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(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -155,15 +133,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; } @@ -183,135 +161,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,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 @@ -342,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; @@ -353,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; @@ -393,8 +363,7 @@ 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(); @@ -425,19 +394,17 @@ 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) { @@ -450,21 +417,19 @@ 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; @@ -473,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 { @@ -496,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); } @@ -570,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(); } @@ -584,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -619,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 75% 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 b2091f4fbaf6..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,41 +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; } - - 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 @@ -90,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 { @@ -123,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:
@@ -134,7 +110,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
    * 
* * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -143,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:
@@ -161,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 { @@ -180,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
@@ -189,7 +162,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
    * 
* * string discovery_name = 3; - * * @return The discoveryName. */ @java.lang.Override @@ -198,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
@@ -214,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 { @@ -233,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.
@@ -244,7 +214,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
    * 
* * string resource_url = 4; - * * @return The resourceUrl. */ @java.lang.Override @@ -253,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.
@@ -271,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 { @@ -290,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
@@ -305,7 +272,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
    * 
* * string parent = 5; - * * @return The parent. */ @java.lang.Override @@ -314,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
@@ -336,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 { @@ -355,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 @@ -371,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 @@ -387,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.
@@ -402,7 +360,6 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -414,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_);
     }
@@ -458,7 +416,8 @@ 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;
@@ -468,22 +427,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.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;
@@ -515,136 +479,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -668,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 @@ -689,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_; @@ -709,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; @@ -799,49 +755,44 @@ 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) { @@ -854,20 +805,18 @@ 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; @@ -876,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 { @@ -898,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; @@ -960,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:
@@ -971,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; @@ -986,8 +925,6 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** - * - * *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
@@ -997,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 { @@ -1012,8 +950,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { } } /** - * - * *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
@@ -1023,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:
@@ -1048,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:
@@ -1069,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; @@ -1086,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
@@ -1095,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; @@ -1110,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
@@ -1119,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 { @@ -1134,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
@@ -1143,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
@@ -1166,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
@@ -1185,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; @@ -1202,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.
@@ -1213,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; @@ -1228,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.
@@ -1239,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 { @@ -1254,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.
@@ -1265,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.
@@ -1290,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.
@@ -1311,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; @@ -1328,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
@@ -1343,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; @@ -1358,8 +1267,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * The full name of the immediate parent of this resource. See
      * [Resource
@@ -1373,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 { @@ -1388,8 +1296,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The full name of the immediate parent of this resource. See
      * [Resource
@@ -1403,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
@@ -1432,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
@@ -1457,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; @@ -1474,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() { @@ -1513,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.
@@ -1536,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.
@@ -1545,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();
@@ -1556,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.
@@ -1568,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;
         }
@@ -1580,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.
@@ -1601,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.
@@ -1611,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.
@@ -1629,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.
@@ -1643,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);
     }
 
@@ -1669,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();
   }
@@ -1683,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1718,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 68%
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 9851bfadfe78..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,55 +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;
   }
-
-  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 @@ -84,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.
    * 
@@ -117,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 @@ -135,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 @@ -150,14 +116,11 @@ public boolean hasAsset() { return asset_ != null; } /** - * - * *
    * Asset.
    * 
* * .google.cloud.asset.v1p2beta1.Asset asset = 3; - * * @return The asset. */ @java.lang.Override @@ -165,8 +128,6 @@ public com.google.cloud.asset.v1p2beta1.Asset getAsset() { return asset_ == null ? com.google.cloud.asset.v1p2beta1.Asset.getDefaultInstance() : asset_; } /** - * - * *
    * Asset.
    * 
@@ -179,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; @@ -191,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()); } @@ -211,13 +172,16 @@ 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; @@ -227,22 +191,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.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; @@ -260,7 +226,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(); @@ -270,104 +237,97 @@ 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.
@@ -375,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,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
@@ -443,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 {
@@ -464,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;
@@ -540,31 +499,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) {
@@ -577,47 +536,34 @@ 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.
      * 
@@ -638,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(); @@ -657,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.
      * 
@@ -669,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; } @@ -683,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.
      * 
@@ -703,8 +642,6 @@ public Builder clearWindow() { return this; } /** - * - * *
      * The time window when the asset data and state was observed.
      * 
@@ -712,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.
      * 
@@ -729,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.
      * 
@@ -744,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 @@ -777,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; @@ -814,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.
      * 
@@ -875,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(); @@ -894,8 +800,6 @@ public Builder setAsset(com.google.cloud.asset.v1p2beta1.Asset.Builder builderFo return this; } /** - * - * *
      * Asset.
      * 
@@ -906,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; } @@ -920,8 +822,6 @@ public Builder mergeAsset(com.google.cloud.asset.v1p2beta1.Asset value) { return this; } /** - * - * *
      * Asset.
      * 
@@ -940,8 +840,6 @@ public Builder clearAsset() { return this; } /** - * - * *
      * Asset.
      * 
@@ -949,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.
      * 
@@ -966,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.
      * 
@@ -981,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); } @@ -1008,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(); } @@ -1022,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1057,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 70% 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 a169a8f496ee..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,81 +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; } - - 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 @@ -83,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 @@ -98,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).
    * 
@@ -114,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 @@ -130,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 @@ -146,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.
@@ -161,7 +127,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -173,7 +138,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 (startTime_ != null) {
       output.writeMessage(1, getStartTime());
     }
@@ -190,10 +156,12 @@ 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;
@@ -203,21 +171,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.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;
@@ -243,136 +212,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -392,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 @@ -413,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 { @@ -433,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; @@ -506,25 +467,26 @@ 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) { @@ -537,33 +499,24 @@ 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() { @@ -574,8 +527,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Start time of the time window (exclusive).
      * 
@@ -596,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(); @@ -615,8 +565,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Start time of the time window (exclusive).
      * 
@@ -627,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; } @@ -639,8 +587,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Start time of the time window (exclusive).
      * 
@@ -659,8 +605,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Start time of the time window (exclusive).
      * 
@@ -668,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).
      * 
@@ -685,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).
      * 
@@ -698,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_; @@ -716,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() { @@ -755,8 +684,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * End time of the time window (inclusive).
      * Current timestamp if not specified.
@@ -778,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.
@@ -787,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();
@@ -798,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.
@@ -811,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;
         }
@@ -823,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.
@@ -844,8 +766,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * End time of the time window (inclusive).
      * Current timestamp if not specified.
@@ -854,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.
@@ -872,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.
@@ -886,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);
     }
 
@@ -913,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();
   }
@@ -927,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -962,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 70%
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 698bef635eb2..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,75 +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; } - - 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:
@@ -78,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 @@ -88,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:
@@ -98,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 @@ -108,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:
@@ -118,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() { @@ -129,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 @@ -147,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 @@ -165,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() { @@ -182,7 +142,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +153,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 (feed_ != null) { output.writeMessage(1, getFeed()); } @@ -211,10 +171,12 @@ 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; @@ -224,21 +186,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.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; @@ -265,135 +228,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,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 @@ -434,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 { @@ -454,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; @@ -494,8 +449,7 @@ 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()); } @@ -528,25 +482,26 @@ 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) { @@ -559,13 +514,8 @@ 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:
@@ -574,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:
@@ -593,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() { @@ -606,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:
@@ -616,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) { @@ -633,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:
@@ -643,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(); @@ -657,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:
@@ -667,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; } @@ -688,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:
@@ -698,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) { @@ -713,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:
@@ -723,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:
@@ -742,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:
@@ -763,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_; @@ -785,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) { @@ -855,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(); @@ -877,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; } @@ -904,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) { @@ -927,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); } @@ -1004,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(); } @@ -1018,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1053,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/assetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeedFeed.java b/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeedFeed.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeedFeed.java rename to owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/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 74% 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 2e171f14a70f..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,43 +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;
   }
-
-  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;
     }
@@ -99,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`.
@@ -135,7 +107,6 @@ public AccessContextPolicyCase getAccessContextPolicyCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -144,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`.
@@ -162,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 { @@ -181,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 @@ -197,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 { @@ -230,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 @@ -245,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.
    * 
@@ -278,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 @@ -294,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 @@ -310,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.
@@ -327,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
@@ -342,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
@@ -353,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
@@ -373,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
@@ -388,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
@@ -399,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
@@ -415,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();
   }
@@ -438,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
@@ -447,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();
   }
@@ -470,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
@@ -479,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();
   }
@@ -493,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();
   }
@@ -504,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
@@ -515,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
@@ -533,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
@@ -551,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. */ @@ -559,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
@@ -570,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; @@ -591,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_); } @@ -608,16 +534,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)); @@ -638,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; @@ -678,35 +600,44 @@ 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: @@ -763,104 +694,97 @@ 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.
@@ -868,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -937,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
@@ -958,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_;
@@ -1017,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;
@@ -1090,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_);
           }
@@ -1110,25 +1032,21 @@ 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();
@@ -1156,76 +1074,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) {
@@ -1235,12 +1153,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() {
@@ -1254,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`.
@@ -1265,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; @@ -1280,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`.
@@ -1291,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 { @@ -1306,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`.
@@ -1317,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`.
@@ -1342,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`.
@@ -1363,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; @@ -1380,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; @@ -1402,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 { @@ -1424,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; @@ -1486,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.
      * 
@@ -1547,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(); @@ -1566,8 +1450,6 @@ public Builder setResource(com.google.cloud.asset.v1p5beta1.Resource.Builder bui return this; } /** - * - * *
      * Representation of the resource.
      * 
@@ -1578,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; } @@ -1592,8 +1472,6 @@ public Builder mergeResource(com.google.cloud.asset.v1p5beta1.Resource value) { return this; } /** - * - * *
      * Representation of the resource.
      * 
@@ -1612,8 +1490,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Representation of the resource.
      * 
@@ -1621,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.
      * 
@@ -1638,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.
      * 
@@ -1653,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_; @@ -1671,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() { @@ -1710,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.
@@ -1733,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.
@@ -1742,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();
@@ -1753,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.
@@ -1766,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;
         }
@@ -1778,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.
@@ -1799,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.
@@ -1809,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.
@@ -1827,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.
@@ -1841,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
@@ -1892,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
@@ -1910,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
@@ -1928,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
@@ -1938,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();
@@ -1952,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
@@ -1974,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
@@ -1998,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
@@ -2008,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();
@@ -2022,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
@@ -2032,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());
@@ -2043,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
@@ -2065,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
@@ -2079,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);
@@ -2087,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
@@ -2108,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
@@ -2129,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
@@ -2139,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
@@ -2153,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
@@ -2171,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 {
@@ -2180,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
@@ -2191,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
@@ -2205,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
@@ -2220,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
@@ -2257,7 +2061,6 @@ public boolean hasAccessPolicy() {
     }
     /**
      * .google.identity.accesscontextmanager.v1.AccessPolicy access_policy = 7;
-     *
      * @return The accessPolicy.
      */
     @java.lang.Override
@@ -2274,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) {
@@ -2288,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) {
@@ -2300,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;
         }
@@ -2327,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) {
@@ -2344,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 {
@@ -2362,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
@@ -2405,7 +2203,6 @@ public boolean hasAccessLevel() {
     }
     /**
      * .google.identity.accesscontextmanager.v1.AccessLevel access_level = 8;
-     *
      * @return The accessLevel.
      */
     @java.lang.Override
@@ -2422,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) {
@@ -2436,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) {
@@ -2448,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;
         }
@@ -2474,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) {
@@ -2491,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 {
@@ -2508,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
@@ -2551,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 {
@@ -2572,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();
@@ -2603,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;
         }
@@ -2652,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();
       }
@@ -2676,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
@@ -2722,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
@@ -2740,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
@@ -2758,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. */ @@ -2766,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
@@ -2777,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
@@ -2796,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
@@ -2822,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
@@ -2847,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
@@ -2869,7 +2624,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
      * 
* * repeated string ancestors = 10; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -2879,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
@@ -2890,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); } @@ -2916,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(); } @@ -2930,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2965,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 77% 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 614da13abd8a..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,35 +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; } - - 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"),
@@ -83,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 @@ -92,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"),
@@ -109,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 { @@ -128,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,
@@ -139,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 @@ -147,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,
@@ -158,7 +131,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -166,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,
@@ -186,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
@@ -197,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
@@ -215,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
@@ -233,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. */ @@ -241,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
@@ -252,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 @@ -320,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
@@ -329,7 +275,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -338,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
@@ -354,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 { @@ -371,7 +316,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,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_); } @@ -393,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) { @@ -416,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; @@ -426,12 +371,13 @@ 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_); @@ -444,23 +390,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.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; } @@ -494,135 +444,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -646,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 @@ -667,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) { @@ -692,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; @@ -732,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(); @@ -787,50 +728,45 @@ 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) { @@ -840,13 +776,10 @@ 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"),
@@ -855,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; @@ -870,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"),
@@ -880,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 { @@ -895,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"),
@@ -905,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"),
@@ -929,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"),
@@ -949,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; @@ -966,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,
@@ -982,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,
@@ -1000,7 +917,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1011,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,
@@ -1037,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,
@@ -1049,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();
@@ -1060,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,
@@ -1076,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;
         }
@@ -1088,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,
@@ -1112,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,
@@ -1125,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,
@@ -1146,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,
@@ -1163,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
@@ -1200,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
@@ -1218,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
@@ -1236,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. */ @@ -1244,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
@@ -1255,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
@@ -1274,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
@@ -1300,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
@@ -1325,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
@@ -1347,7 +1229,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
      * 
* * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1357,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
@@ -1368,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(); @@ -1385,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. */ @@ -1455,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 @@ -1497,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; @@ -1536,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
@@ -1545,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; @@ -1560,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
@@ -1569,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 { @@ -1584,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
@@ -1593,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
@@ -1616,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
@@ -1635,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); } @@ -1661,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(); } @@ -1675,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1710,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 72% 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 986a57608398..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,41 +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; } - - 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 @@ -86,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 @@ -101,8 +76,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time the snapshot was taken.
    * 
@@ -117,8 +90,6 @@ public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder() { public static final int ASSETS_FIELD_NUMBER = 2; private java.util.List assets_; /** - * - * *
    * Assets.
    * 
@@ -130,8 +101,6 @@ public java.util.List getAssetsList() { return assets_; } /** - * - * *
    * Assets.
    * 
@@ -139,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.
    * 
@@ -157,8 +124,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
    * Assets.
    * 
@@ -170,8 +135,6 @@ public com.google.cloud.asset.v1p5beta1.Asset getAssets(int index) { return assets_.get(index); } /** - * - * *
    * Assets.
    * 
@@ -179,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 @@ -203,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 { @@ -235,7 +196,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,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()); } @@ -267,10 +228,12 @@ 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_); @@ -283,20 +246,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.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; } @@ -324,135 +289,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +434,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 @@ -496,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_; @@ -522,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; @@ -562,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()); } @@ -585,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_); } @@ -624,38 +579,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.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) { @@ -665,38 +619,28 @@ 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() { @@ -707,8 +651,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -729,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(); @@ -748,8 +689,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -760,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; } @@ -772,8 +711,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -792,8 +729,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -801,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.
      * 
@@ -818,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.
      * 
@@ -831,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.
      * 
@@ -880,8 +803,6 @@ public java.util.List getAssetsList() { } } /** - * - * *
      * Assets.
      * 
@@ -896,8 +817,6 @@ public int getAssetsCount() { } } /** - * - * *
      * Assets.
      * 
@@ -912,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(); @@ -934,8 +852,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1p5beta1.Asset value return this; } /** - * - * *
      * Assets.
      * 
@@ -954,8 +870,6 @@ public Builder setAssets( return this; } /** - * - * *
      * Assets.
      * 
@@ -976,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(); @@ -998,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()); @@ -1017,8 +929,6 @@ public Builder addAssets(com.google.cloud.asset.v1p5beta1.Asset.Builder builderF return this; } /** - * - * *
      * Assets.
      * 
@@ -1037,8 +947,6 @@ public Builder addAssets( return this; } /** - * - * *
      * Assets.
      * 
@@ -1049,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); @@ -1057,8 +966,6 @@ public Builder addAllAssets( return this; } /** - * - * *
      * Assets.
      * 
@@ -1076,8 +983,6 @@ public Builder clearAssets() { return this; } /** - * - * *
      * Assets.
      * 
@@ -1095,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 { @@ -1140,8 +1040,6 @@ public com.google.cloud.asset.v1p5beta1.AssetOrBuilder getAssetsOrBuilder(int in } } /** - * - * *
      * Assets.
      * 
@@ -1149,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_; @@ -1197,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; @@ -1220,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 { @@ -1243,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); } @@ -1317,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(); } @@ -1331,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1366,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 75% 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 4fa82289ca27..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,41 +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; } - - 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 @@ -90,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 { @@ -123,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:
@@ -134,7 +110,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
    * 
* * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -143,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:
@@ -161,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 { @@ -180,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
@@ -189,7 +162,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
    * 
* * string discovery_name = 3; - * * @return The discoveryName. */ @java.lang.Override @@ -198,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
@@ -214,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 { @@ -233,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.
@@ -244,7 +214,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
    * 
* * string resource_url = 4; - * * @return The resourceUrl. */ @java.lang.Override @@ -253,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.
@@ -271,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 { @@ -290,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
@@ -305,7 +272,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
    * 
* * string parent = 5; - * * @return The parent. */ @java.lang.Override @@ -314,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
@@ -336,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 { @@ -355,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 @@ -371,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 @@ -387,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.
@@ -402,7 +360,6 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -414,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_);
     }
@@ -458,7 +416,8 @@ 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;
@@ -468,22 +427,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.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;
@@ -515,136 +479,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -668,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 @@ -689,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_; @@ -709,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; @@ -799,49 +755,44 @@ 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) { @@ -854,20 +805,18 @@ 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; @@ -876,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 { @@ -898,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; @@ -960,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:
@@ -971,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; @@ -986,8 +925,6 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** - * - * *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
@@ -997,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 { @@ -1012,8 +950,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { } } /** - * - * *
      * The URL of the discovery document containing the resource's JSON schema.
      * For example:
@@ -1023,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:
@@ -1048,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:
@@ -1069,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; @@ -1086,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
@@ -1095,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; @@ -1110,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
@@ -1119,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 { @@ -1134,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
@@ -1143,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
@@ -1166,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
@@ -1185,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; @@ -1202,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.
@@ -1213,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; @@ -1228,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.
@@ -1239,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 { @@ -1254,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.
@@ -1265,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.
@@ -1290,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.
@@ -1311,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; @@ -1328,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
@@ -1343,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; @@ -1358,8 +1267,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * The full name of the immediate parent of this resource. See
      * [Resource
@@ -1373,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 { @@ -1388,8 +1296,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The full name of the immediate parent of this resource. See
      * [Resource
@@ -1403,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
@@ -1432,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
@@ -1457,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; @@ -1474,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() { @@ -1513,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.
@@ -1536,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.
@@ -1545,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();
@@ -1556,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.
@@ -1568,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;
         }
@@ -1580,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.
@@ -1601,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.
@@ -1611,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.
@@ -1629,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.
@@ -1643,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);
     }
 
@@ -1669,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();
   }
@@ -1683,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1718,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/assetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java
rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java
rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java
rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java
diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/SyncListAssets.java b/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/SyncListAssets.java
similarity index 100%
rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/SyncListAssets.java
rename to owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/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 79% 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 61ba975a61bb..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,43 +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;
   }
-
-  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;
     }
@@ -105,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 @@ -146,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 @@ -162,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.
@@ -179,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`
@@ -190,7 +154,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -199,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`
@@ -217,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 { @@ -236,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
@@ -246,7 +207,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -255,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
@@ -272,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 { @@ -291,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 @@ -306,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.
    * 
@@ -339,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.
@@ -354,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 @@ -362,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.
@@ -377,7 +322,6 @@ public boolean hasIamPolicy() {
    * 
* * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ @java.lang.Override @@ -385,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.
@@ -409,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).
@@ -425,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).
@@ -437,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).
@@ -458,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).
@@ -474,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).
@@ -486,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 @@ -508,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).
@@ -537,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 @@ -563,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).
@@ -592,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 @@ -618,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).
@@ -647,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();
   }
@@ -658,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 @@ -674,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.
@@ -709,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),
@@ -722,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),
@@ -742,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),
@@ -762,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. */ @@ -770,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),
@@ -783,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; @@ -804,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_); } @@ -821,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)); @@ -857,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; @@ -890,10 +772,12 @@ 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; @@ -903,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); @@ -912,34 +796,45 @@ 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: @@ -1004,104 +899,97 @@ 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
@@ -1115,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1196,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
@@ -1217,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_;
@@ -1286,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;
@@ -1362,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_);
           }
@@ -1385,25 +1271,21 @@ 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();
@@ -1431,88 +1313,90 @@ 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) {
@@ -1522,12 +1406,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() {
@@ -1541,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.
@@ -1605,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.
@@ -1614,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();
@@ -1625,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.
@@ -1638,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;
         }
@@ -1650,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.
@@ -1671,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.
@@ -1681,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.
@@ -1699,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.
@@ -1715,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_;
@@ -1733,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`
@@ -1744,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; @@ -1759,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`
@@ -1770,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 { @@ -1785,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`
@@ -1796,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`
@@ -1821,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`
@@ -1842,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) { + 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; @@ -1859,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
@@ -1869,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; @@ -1884,8 +1728,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
      * The type of the asset. Example: `compute.googleapis.com/Disk`
      * See [Supported asset
@@ -1894,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 { @@ -1909,8 +1752,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
      * The type of the asset. Example: `compute.googleapis.com/Disk`
      * See [Supported asset
@@ -1919,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
@@ -1943,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
@@ -1963,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; @@ -1980,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.
      * 
@@ -2041,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(); @@ -2060,8 +1882,6 @@ public Builder setResource(com.google.cloud.asset.v1p7beta1.Resource.Builder bui return this; } /** - * - * *
      * A representation of the resource.
      * 
@@ -2072,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; } @@ -2086,8 +1904,6 @@ public Builder mergeResource(com.google.cloud.asset.v1p7beta1.Resource value) { return this; } /** - * - * *
      * A representation of the resource.
      * 
@@ -2106,8 +1922,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * A representation of the resource.
      * 
@@ -2115,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.
      * 
@@ -2132,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.
      * 
@@ -2147,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_; @@ -2165,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.
@@ -2185,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.
@@ -2207,7 +2005,6 @@ public boolean hasIamPolicy() {
      * 
* * .google.iam.v1.Policy iam_policy = 4; - * * @return The iamPolicy. */ public com.google.iam.v1.Policy getIamPolicy() { @@ -2218,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.
@@ -2248,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.
@@ -2264,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();
@@ -2275,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.
@@ -2295,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;
         }
@@ -2307,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.
@@ -2335,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.
@@ -2352,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.
@@ -2377,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.
@@ -2398,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).
@@ -2450,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).
@@ -2469,8 +2243,6 @@ public int getOrgPolicyCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A representation of an [organization
      * policy](https://cloud.google.com/resource-manager/docs/organization-policy/overview#organization_policy).
@@ -2488,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).
@@ -2499,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();
@@ -2513,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).
@@ -2536,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).
@@ -2561,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).
@@ -2572,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();
@@ -2586,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).
@@ -2597,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());
@@ -2608,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).
@@ -2631,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).
@@ -2646,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);
@@ -2654,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).
@@ -2676,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).
@@ -2698,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).
@@ -2709,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).
@@ -2724,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).
@@ -2743,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 {
@@ -2752,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).
@@ -2764,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).
@@ -2779,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).
@@ -2795,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 @@ -2838,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 @@ -2864,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).
@@ -2887,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).
@@ -2908,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).
@@ -2917,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;
         }
@@ -2944,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).
@@ -2970,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).
@@ -2979,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).
@@ -2994,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 {
@@ -3006,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).
@@ -3016,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 @@ -3063,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 @@ -3089,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).
@@ -3112,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).
@@ -3133,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).
@@ -3144,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;
         }
@@ -3168,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).
@@ -3194,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).
@@ -3207,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).
@@ -3217,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 {
@@ -3229,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).
@@ -3239,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 @@ -3286,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 { @@ -3313,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).
@@ -3322,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();
@@ -3337,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).
@@ -3358,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).
@@ -3367,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;
         }
@@ -3395,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).
@@ -3421,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).
@@ -3430,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).
@@ -3445,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).
@@ -3468,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.
@@ -3559,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.
@@ -3580,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.
@@ -3593,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;
         }
@@ -3607,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.
@@ -3628,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.
@@ -3638,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.
@@ -3656,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.
@@ -3672,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),
@@ -3711,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),
@@ -3731,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),
@@ -3751,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. */ @@ -3759,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),
@@ -3772,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),
@@ -3793,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),
@@ -3821,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),
@@ -3848,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),
@@ -3872,7 +3452,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
      * 
* * repeated string ancestors = 10; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -3882,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),
@@ -3895,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); } @@ -3921,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(); } @@ -3935,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -3970,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 81% 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 e4e0cb57d661..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,35 +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; } - - 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
@@ -81,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 @@ -90,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
@@ -107,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 { @@ -126,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
@@ -135,7 +111,6 @@ public com.google.protobuf.ByteString getDatasetBytes() {
    * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ @java.lang.Override @@ -144,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
@@ -160,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 { @@ -179,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
@@ -189,7 +162,6 @@ public com.google.protobuf.ByteString getTableBytes() {
    * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -200,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.
@@ -221,7 +191,6 @@ public boolean getForce() {
    * 
* * .google.cloud.asset.v1p7beta1.PartitionSpec partition_spec = 4; - * * @return Whether the partitionSpec field is set. */ @java.lang.Override @@ -229,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.
@@ -250,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.
@@ -290,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
@@ -320,7 +280,6 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
    * 
* * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -329,7 +288,6 @@ public boolean getSeparateTablesPerAssetType() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,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_); } @@ -373,13 +332,16 @@ 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; @@ -389,22 +351,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.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; } @@ -421,148 +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 = (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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -584,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 @@ -605,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_; @@ -624,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; @@ -664,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(); @@ -709,43 +668,39 @@ 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) { @@ -758,8 +713,6 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** - * - * *
      * Required. The BigQuery dataset in format
      * "projects/projectId/datasets/datasetId", to which the snapshot result
@@ -768,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; @@ -783,8 +736,6 @@ public java.lang.String getDataset() { } } /** - * - * *
      * Required. The BigQuery dataset in format
      * "projects/projectId/datasets/datasetId", to which the snapshot result
@@ -793,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 { @@ -808,8 +760,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
      * Required. The BigQuery dataset in format
      * "projects/projectId/datasets/datasetId", to which the snapshot result
@@ -818,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
@@ -842,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
@@ -862,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; @@ -879,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
@@ -888,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; @@ -903,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
@@ -912,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 { @@ -927,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
@@ -936,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
@@ -959,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
@@ -978,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
@@ -1005,7 +938,6 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 3; - * * @return The force. */ @java.lang.Override @@ -1013,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
@@ -1023,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
@@ -1044,11 +971,10 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 3; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -1056,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.
@@ -1082,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.
@@ -1110,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.
@@ -1159,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.
@@ -1193,8 +1104,6 @@ public Builder setPartitionSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * [partition_spec] determines whether to export to partitioned table(s) and
      * how to partition the data.
@@ -1219,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;
         }
@@ -1233,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.
@@ -1267,8 +1172,6 @@ public Builder clearPartitionSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * [partition_spec] determines whether to export to partitioned table(s) and
      * how to partition the data.
@@ -1290,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.
@@ -1321,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.
@@ -1350,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
@@ -1398,7 +1291,6 @@ public com.google.cloud.asset.v1p7beta1.PartitionSpecOrBuilder getPartitionSpecO
      * 
* * bool separate_tables_per_asset_type = 5; - * * @return The separateTablesPerAssetType. */ @java.lang.Override @@ -1406,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
@@ -1436,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
@@ -1477,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); } @@ -1498,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(); } @@ -1512,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1547,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 78% 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 3ad35b195227..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,35 +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; } - - 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
@@ -82,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 @@ -94,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
@@ -110,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 { @@ -132,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).
@@ -143,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 @@ -151,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).
@@ -162,7 +131,6 @@ public boolean hasReadTime() {
    * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ @java.lang.Override @@ -170,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).
@@ -190,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".
@@ -210,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".
@@ -237,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".
@@ -264,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. */ @@ -272,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".
@@ -292,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 @@ -359,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() { @@ -398,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
@@ -414,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
@@ -437,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
@@ -460,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. */ @@ -468,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
@@ -484,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; @@ -505,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_); } @@ -515,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) { @@ -538,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; @@ -548,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; @@ -571,26 +493,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.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; } @@ -628,135 +554,129 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -784,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 @@ -805,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) { @@ -838,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; @@ -878,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(); @@ -939,51 +856,48 @@ 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) { @@ -993,13 +907,10 @@ 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
@@ -1007,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; @@ -1025,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
@@ -1034,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 { @@ -1052,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
@@ -1061,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
@@ -1087,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
@@ -1109,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; @@ -1129,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).
@@ -1145,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).
@@ -1163,7 +1048,6 @@ public boolean hasReadTime() {
      * 
* * .google.protobuf.Timestamp read_time = 2; - * * @return The readTime. */ public com.google.protobuf.Timestamp getReadTime() { @@ -1174,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).
@@ -1200,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).
@@ -1212,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();
@@ -1223,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).
@@ -1239,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;
         }
@@ -1251,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).
@@ -1275,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).
@@ -1288,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).
@@ -1309,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).
@@ -1326,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".
@@ -1372,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".
@@ -1399,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".
@@ -1426,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. */ @@ -1434,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".
@@ -1454,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".
@@ -1482,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".
@@ -1517,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".
@@ -1551,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".
@@ -1582,7 +1432,6 @@ public Builder addAllAssetTypes(java.lang.Iterable values) {
      * 
* * repeated string asset_types = 3; - * * @return This builder for chaining. */ public Builder clearAssetTypes() { @@ -1592,8 +1441,6 @@ public Builder clearAssetTypes() { return this; } /** - * - * *
      * A list of asset types to take a snapshot for. For example:
      * "compute.googleapis.com/Disk".
@@ -1612,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(); @@ -1629,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. */ @@ -1699,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; @@ -1725,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) { @@ -1795,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) { @@ -1818,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; } @@ -1847,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) { @@ -1870,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
@@ -1962,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
@@ -1985,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
@@ -2008,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. */ @@ -2016,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
@@ -2032,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
@@ -2056,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
@@ -2087,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
@@ -2117,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
@@ -2144,7 +1906,6 @@ public Builder addAllRelationshipTypes(java.lang.Iterable valu
      * 
* * repeated string relationship_types = 6; - * * @return This builder for chaining. */ public Builder clearRelationshipTypes() { @@ -2154,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
@@ -2170,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); } @@ -2196,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(); } @@ -2210,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -2245,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 73% 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 b7d844e3802f..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,55 +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;
   }
-
-  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 @@ -87,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 @@ -102,8 +78,6 @@ public com.google.protobuf.Timestamp getReadTime() { return readTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : readTime_; } /** - * - * *
    * Time the snapshot was taken.
    * 
@@ -118,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 @@ -133,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.
    * 
@@ -166,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
@@ -177,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 @@ -185,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
@@ -196,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
@@ -224,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;
@@ -236,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());
     }
@@ -256,13 +210,16 @@ 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;
@@ -272,25 +229,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.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;
@@ -321,104 +280,96 @@ 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]
@@ -429,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -480,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
@@ -501,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 {
@@ -526,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;
@@ -566,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());
       }
@@ -603,31 +552,33 @@ 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) {
@@ -640,33 +591,24 @@ 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() { @@ -677,8 +619,6 @@ public com.google.protobuf.Timestamp getReadTime() { } } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -699,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(); @@ -718,8 +657,6 @@ public Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -730,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; } @@ -742,8 +679,6 @@ public Builder mergeReadTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -762,8 +697,6 @@ public Builder clearReadTime() { return this; } /** - * - * *
      * Time the snapshot was taken.
      * 
@@ -771,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.
      * 
@@ -788,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.
      * 
@@ -801,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_; @@ -819,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.
      * 
@@ -880,8 +794,6 @@ public Builder setOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig val return this; } /** - * - * *
      * Output configuration indicating where the results were output to.
      * 
@@ -900,8 +812,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Output configuration indicating where the results were output to.
      * 
@@ -912,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; } @@ -926,8 +834,6 @@ public Builder mergeOutputConfig(com.google.cloud.asset.v1p7beta1.OutputConfig v return this; } /** - * - * *
      * Output configuration indicating where the results were output to.
      * 
@@ -946,8 +852,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Output configuration indicating where the results were output to.
      * 
@@ -955,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.
      * 
@@ -972,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.
      * 
@@ -987,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_; @@ -1005,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
@@ -1021,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
@@ -1039,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
@@ -1078,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
@@ -1102,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
@@ -1118,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;
         }
@@ -1132,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
@@ -1156,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
@@ -1169,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
@@ -1190,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
@@ -1209,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);
     }
 
@@ -1236,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();
   }
@@ -1250,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1285,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 74%
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 90bf2d64b525..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,82 +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; } - - 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; } @@ -92,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
@@ -125,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
@@ -143,7 +114,6 @@ public boolean hasUri() {
    * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { @@ -154,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; @@ -163,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
@@ -174,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; } @@ -196,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:
@@ -211,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:
@@ -233,7 +198,6 @@ public boolean hasUriPrefix() {
    * 
* * string uri_prefix = 2; - * * @return The uriPrefix. */ public java.lang.String getUriPrefix() { @@ -244,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; @@ -253,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:
@@ -268,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; } @@ -289,7 +253,6 @@ public com.google.protobuf.ByteString getUriPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,7 +264,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 (objectUriCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, objectUri_); } @@ -331,21 +295,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.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: @@ -378,136 +343,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -517,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 @@ -538,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_; } @@ -555,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; @@ -595,27 +552,23 @@ 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(); @@ -643,27 +596,24 @@ 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) { @@ -673,12 +623,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() { @@ -688,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
@@ -700,7 +649,6 @@ public Builder clearObjectUri() {
      * 
* * string uri = 1; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -708,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
@@ -719,7 +665,6 @@ public boolean hasUri() {
      * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -729,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; @@ -740,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
@@ -751,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; } @@ -772,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
@@ -783,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
@@ -808,7 +749,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -820,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
@@ -831,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(); @@ -847,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:
@@ -862,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 @@ -870,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:
@@ -885,7 +818,6 @@ public boolean hasUriPrefix() {
      * 
* * string uri_prefix = 2; - * * @return The uriPrefix. */ @java.lang.Override @@ -895,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; @@ -906,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:
@@ -921,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; } @@ -942,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:
@@ -957,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:
@@ -986,7 +914,6 @@ public Builder setUriPrefix(java.lang.String value) {
      * 
* * string uri_prefix = 2; - * * @return This builder for chaining. */ public Builder clearUriPrefix() { @@ -998,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:
@@ -1013,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); } @@ -1039,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(); } @@ -1053,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1088,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 67% 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 468dcb870522..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,114 +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; } - - 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. */ @@ -116,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; @@ -145,7 +115,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 < uris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uris_.getRaw(i)); } @@ -174,15 +145,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; } @@ -203,136 +174,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -342,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 @@ -363,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(); @@ -379,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; @@ -419,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_; @@ -457,20 +419,18 @@ 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) { @@ -480,58 +440,47 @@ 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. */ @@ -539,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() { @@ -637,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); } @@ -671,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(); } @@ -685,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -720,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 70% 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 a15a6ffbc992..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,82 +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; } - - 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; } @@ -92,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 @@ -129,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.
    * 
@@ -158,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 @@ -181,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.
@@ -210,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;
@@ -231,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 (destinationCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.asset.v1p7beta1.GcsDestination) destination_);
     }
@@ -248,14 +207,12 @@ 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;
@@ -265,21 +222,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.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:
@@ -312,136 +270,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -457,9 +409,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 @@ -478,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_; @@ -503,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; @@ -545,20 +495,17 @@ 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(); @@ -586,26 +533,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) { @@ -615,12 +562,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() { @@ -630,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 @@ -651,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 @@ -676,8 +615,6 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination getGcsDestination() { } } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -698,8 +635,6 @@ public Builder setGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestination return this; } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -718,8 +653,6 @@ public Builder setGcsDestination( return this; } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -728,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; } @@ -751,8 +680,6 @@ public Builder mergeGcsDestination(com.google.cloud.asset.v1p7beta1.GcsDestinati return this; } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -776,8 +703,6 @@ public Builder clearGcsDestination() { return this; } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -788,8 +713,6 @@ public com.google.cloud.asset.v1p7beta1.GcsDestination.Builder getGcsDestination return getGcsDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -808,8 +731,6 @@ public com.google.cloud.asset.v1p7beta1.GcsDestinationOrBuilder getGcsDestinatio } } /** - * - * *
      * Destination on Cloud Storage.
      * 
@@ -817,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 @@ -863,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 @@ -889,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.
@@ -898,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();
@@ -913,8 +816,6 @@ public Builder setBigqueryDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Destination on BigQuery. The output table stores the fields in asset
      * proto as columns in BigQuery.
@@ -934,8 +835,6 @@ public Builder setBigqueryDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Destination on BigQuery. The output table stores the fields in asset
      * proto as columns in BigQuery.
@@ -943,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;
         }
@@ -969,8 +863,6 @@ public Builder mergeBigqueryDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Destination on BigQuery. The output table stores the fields in asset
      * proto as columns in BigQuery.
@@ -995,8 +887,6 @@ public Builder clearBigqueryDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Destination on BigQuery. The output table stores the fields in asset
      * proto as columns in BigQuery.
@@ -1004,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.
@@ -1019,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 {
@@ -1031,8 +917,6 @@ public Builder clearBigqueryDestination() {
       }
     }
     /**
-     *
-     *
      * 
      * Destination on BigQuery. The output table stores the fields in asset
      * proto as columns in BigQuery.
@@ -1041,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);
     }
 
@@ -1076,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();
   }
@@ -1090,27 +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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            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;
@@ -1125,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 67%
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 16fdc48ab8cd..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,81 +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; } - - 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; } @@ -91,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 @@ -126,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.
    * 
@@ -155,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; @@ -173,7 +141,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 (resultCase_ == 1) { output.writeMessage(1, (com.google.cloud.asset.v1p7beta1.GcsOutputResult) result_); } @@ -187,9 +156,8 @@ 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; @@ -199,18 +167,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: @@ -239,136 +207,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +343,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 @@ -402,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_; @@ -420,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; @@ -462,15 +422,13 @@ 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(); @@ -498,19 +456,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) { @@ -520,12 +478,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() { @@ -535,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 @@ -556,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 @@ -581,8 +531,6 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult getGcsResult() { } } /** - * - * *
      * Export result on Cloud Storage.
      * 
@@ -603,8 +551,6 @@ public Builder setGcsResult(com.google.cloud.asset.v1p7beta1.GcsOutputResult val return this; } /** - * - * *
      * Export result on Cloud Storage.
      * 
@@ -623,8 +569,6 @@ public Builder setGcsResult( return this; } /** - * - * *
      * Export result on Cloud Storage.
      * 
@@ -633,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; } @@ -655,8 +596,6 @@ public Builder mergeGcsResult(com.google.cloud.asset.v1p7beta1.GcsOutputResult v return this; } /** - * - * *
      * Export result on Cloud Storage.
      * 
@@ -680,8 +619,6 @@ public Builder clearGcsResult() { return this; } /** - * - * *
      * Export result on Cloud Storage.
      * 
@@ -692,8 +629,6 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResult.Builder getGcsResultBuil return getGcsResultFieldBuilder().getBuilder(); } /** - * - * *
      * Export result on Cloud Storage.
      * 
@@ -712,8 +647,6 @@ public com.google.cloud.asset.v1p7beta1.GcsOutputResultOrBuilder getGcsResultOrB } } /** - * - * *
      * Export result on Cloud Storage.
      * 
@@ -721,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); } @@ -756,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(); } @@ -770,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -805,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 68% 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 1e0d5eb26295..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,75 +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; } - - 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
@@ -80,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.
      * 
@@ -92,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,
@@ -106,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
@@ -122,8 +96,6 @@ public enum PartitionKey implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified partition key. If used, it means using non-partitioned table.
      * 
@@ -132,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,
@@ -146,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
@@ -159,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(
@@ -183,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;
@@ -245,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; @@ -293,10 +250,9 @@ 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); @@ -308,10 +264,9 @@ 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; @@ -321,13 +276,12 @@ 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; @@ -348,136 +302,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -487,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 @@ -508,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; @@ -519,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; @@ -589,19 +535,17 @@ 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) { @@ -614,100 +558,80 @@ 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); } @@ -717,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(); } @@ -731,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -766,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 75% 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 b7cd47f20032..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,35 +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;
   }
-
-  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`
@@ -90,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 @@ -99,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`
@@ -117,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 { @@ -136,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
@@ -146,7 +122,6 @@ public com.google.protobuf.ByteString getAssetBytes() {
    * 
* * string asset_type = 2; - * * @return The assetType. */ @java.lang.Override @@ -155,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
@@ -172,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 { @@ -191,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),
@@ -202,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),
@@ -220,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),
@@ -238,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. */ @@ -246,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),
@@ -257,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; @@ -278,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_); } @@ -319,17 +284,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.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; } @@ -354,104 +321,97 @@ 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
@@ -465,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -504,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
@@ -525,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_;
@@ -543,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;
@@ -628,32 +587,28 @@ 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) {
@@ -663,13 +618,10 @@ 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`
@@ -679,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; @@ -694,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`
@@ -705,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 { @@ -720,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`
@@ -731,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`
@@ -756,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`
@@ -777,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; @@ -794,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
@@ -804,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; @@ -819,8 +761,6 @@ public java.lang.String getAssetType() { } } /** - * - * *
      * The type of the asset. Example: `compute.googleapis.com/Disk`
      * See [Supported asset
@@ -829,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 { @@ -844,8 +785,6 @@ public com.google.protobuf.ByteString getAssetTypeBytes() { } } /** - * - * *
      * The type of the asset. Example: `compute.googleapis.com/Disk`
      * See [Supported asset
@@ -854,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
@@ -878,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
@@ -898,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),
@@ -934,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),
@@ -952,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),
@@ -970,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. */ @@ -978,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),
@@ -989,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),
@@ -1008,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),
@@ -1034,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),
@@ -1059,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),
@@ -1081,7 +996,6 @@ public Builder addAllAncestors(java.lang.Iterable values) {
      * 
* * repeated string ancestors = 3; - * * @return This builder for chaining. */ public Builder clearAncestors() { @@ -1091,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),
@@ -1102,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); } @@ -1128,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(); } @@ -1142,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1177,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 70% 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 7c3346af2675..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,83 +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; } - - 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 @@ -85,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.
    * 
@@ -111,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.
    * 
@@ -132,8 +100,6 @@ public java.util.List getAssetsLi return assets_; } /** - * - * *
    * The peer resources of the relationship.
    * 
@@ -141,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.
    * 
@@ -159,8 +123,6 @@ public int getAssetsCount() { return assets_.size(); } /** - * - * *
    * The peer resources of the relationship.
    * 
@@ -172,8 +134,6 @@ public com.google.cloud.asset.v1p7beta1.RelatedAsset getAssets(int index) { return assets_.get(index); } /** - * - * *
    * The peer resources of the relationship.
    * 
@@ -181,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; @@ -198,7 +158,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 (relationshipAttributes_ != null) { output.writeMessage(1, getRelationshipAttributes()); } @@ -215,11 +176,12 @@ 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; @@ -229,19 +191,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.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; } @@ -266,136 +229,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +373,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 @@ -437,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_; @@ -462,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; @@ -524,10 +479,9 @@ 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_); } @@ -559,33 +513,32 @@ 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) { @@ -595,63 +548,45 @@ 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(); @@ -665,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) { @@ -686,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; } @@ -715,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) { @@ -736,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.
      * 
@@ -831,8 +732,6 @@ public java.util.List getAssetsLi } } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -847,8 +746,6 @@ public int getAssetsCount() { } } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -863,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(); @@ -885,8 +781,6 @@ public Builder setAssets(int index, com.google.cloud.asset.v1p7beta1.RelatedAsse return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -905,8 +799,6 @@ public Builder setAssets( return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -927,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(); @@ -949,8 +840,6 @@ public Builder addAssets(int index, com.google.cloud.asset.v1p7beta1.RelatedAsse return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -969,8 +858,6 @@ public Builder addAssets( return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -989,8 +876,6 @@ public Builder addAssets( return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -1001,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); @@ -1009,8 +895,6 @@ public Builder addAllAssets( return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -1028,8 +912,6 @@ public Builder clearAssets() { return this; } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -1047,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 { @@ -1092,8 +969,6 @@ public com.google.cloud.asset.v1p7beta1.RelatedAssetOrBuilder getAssetsOrBuilder } } /** - * - * *
      * The peer resources of the relationship.
      * 
@@ -1101,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); } @@ -1159,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(); } @@ -1173,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1208,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 69% 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 be4ee6043020..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,42 +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;
   }
-
-  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 @@ -91,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 { @@ -125,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 @@ -141,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 { @@ -174,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 @@ -190,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 { @@ -223,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 @@ -239,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 { @@ -270,7 +239,6 @@ public com.google.protobuf.ByteString getActionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,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_); } @@ -324,18 +293,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.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; } @@ -361,104 +333,96 @@ 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`.
@@ -466,32 +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() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -507,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
@@ -528,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_;
@@ -542,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;
@@ -582,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();
@@ -626,37 +588,32 @@ 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) {
@@ -669,21 +626,19 @@ 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; @@ -692,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 { @@ -715,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; @@ -780,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; @@ -802,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 { @@ -824,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; @@ -886,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; @@ -908,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 { @@ -930,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; @@ -992,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; @@ -1014,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 { @@ -1036,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); } @@ -1107,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(); } @@ -1121,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1156,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 75% 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 f606f90e1fc9..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,41 +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; } - - 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 @@ -91,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 { @@ -124,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:
@@ -135,7 +111,6 @@ public com.google.protobuf.ByteString getVersionBytes() {
    * 
* * string discovery_document_uri = 2; - * * @return The discoveryDocumentUri. */ @java.lang.Override @@ -144,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:
@@ -162,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 { @@ -181,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`
@@ -191,7 +164,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() {
    * 
* * string discovery_name = 3; - * * @return The discoveryName. */ @java.lang.Override @@ -200,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`
@@ -217,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 { @@ -236,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:
@@ -246,7 +216,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() {
    * 
* * string resource_url = 4; - * * @return The resourceUrl. */ @java.lang.Override @@ -255,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:
@@ -272,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 { @@ -291,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
@@ -307,7 +274,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() {
    * 
* * string parent = 5; - * * @return The parent. */ @java.lang.Override @@ -316,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
@@ -339,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 { @@ -358,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 @@ -374,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 @@ -390,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.
@@ -407,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 @@ -424,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 { @@ -456,7 +411,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -468,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_); } @@ -515,7 +470,8 @@ 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_); @@ -528,24 +484,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.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; } @@ -578,136 +540,130 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -733,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 @@ -754,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_; @@ -775,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; @@ -869,55 +823,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 - 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) { @@ -930,20 +878,18 @@ 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; @@ -952,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 { @@ -974,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; @@ -1036,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:
@@ -1047,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; @@ -1062,8 +998,6 @@ public java.lang.String getDiscoveryDocumentUri() { } } /** - * - * *
      * The URL of the discovery document containing the resource's JSON schema.
      * Example:
@@ -1073,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 { @@ -1088,8 +1023,6 @@ public com.google.protobuf.ByteString getDiscoveryDocumentUriBytes() { } } /** - * - * *
      * The URL of the discovery document containing the resource's JSON schema.
      * Example:
@@ -1099,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:
@@ -1124,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:
@@ -1145,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; @@ -1162,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`
@@ -1172,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; @@ -1187,8 +1113,6 @@ public java.lang.String getDiscoveryName() { } } /** - * - * *
      * The JSON schema name listed in the discovery document. Example:
      * `Project`
@@ -1197,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 { @@ -1212,8 +1137,6 @@ public com.google.protobuf.ByteString getDiscoveryNameBytes() { } } /** - * - * *
      * The JSON schema name listed in the discovery document. Example:
      * `Project`
@@ -1222,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`
@@ -1246,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`
@@ -1266,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; @@ -1283,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:
@@ -1293,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; @@ -1308,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:
@@ -1318,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 { @@ -1333,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:
@@ -1343,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:
@@ -1367,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:
@@ -1387,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; @@ -1404,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
@@ -1420,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; @@ -1435,8 +1341,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * The full name of the immediate parent of this resource. See
      * [Resource
@@ -1451,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 { @@ -1466,8 +1371,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The full name of the immediate parent of this resource. See
      * [Resource
@@ -1482,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
@@ -1512,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
@@ -1538,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; @@ -1555,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() { @@ -1594,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.
@@ -1617,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.
@@ -1626,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();
@@ -1637,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.
@@ -1649,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;
         }
@@ -1661,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.
@@ -1682,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.
@@ -1692,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.
@@ -1710,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.
@@ -1724,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_;
@@ -1741,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; @@ -1764,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 { @@ -1787,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); } @@ -1861,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(); } @@ -1875,27 +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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; @@ -1910,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 diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java b/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java rename to owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java b/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java rename to owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java b/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java rename to owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java b/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java rename to owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java diff --git a/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.java b/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.java similarity index 100% rename from java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.java rename to owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.java From 1abc3cc33da5d208c1fa75b03b13d0ecf0553056 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 22 Nov 2022 23:09:10 +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 --- .../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 .../v1/assetservice/getfeed/AsyncGetFeed.java | 0 .../v1/assetservice/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 .../assetservice/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 .../assetservice/getfeed/AsyncGetFeed.java | 0 .../assetservice/getfeed/SyncGetFeed.java | 0 .../getfeed/SyncGetFeedFeedname.java | 0 .../getfeed/SyncGetFeedString.java | 0 .../listfeeds/AsyncListFeeds.java | 0 .../assetservice/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 .../SyncCreateSetCredentialsProvider.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../exportassets/AsyncExportAssets.java | 0 .../exportassets/AsyncExportAssetsLRO.java | 0 .../exportassets/SyncExportAssets.java | 0 .../exportassets/SyncExportAssets.java | 0 .../exportassets/SyncExportAssets.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 - 462 files changed, 58428 insertions(+), 36387 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/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java (100%) rename {owl-bot-staging/java-asset/v1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/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/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java (100%) rename {owl-bot-staging/java-asset/v1p1beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/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/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java (100%) rename {owl-bot-staging/java-asset/v1p2beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/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/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java (100%) rename {owl-bot-staging/java-asset/v1p5beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/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%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java (100%) rename {owl-bot-staging/java-asset/v1p7beta1 => java-asset}/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.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/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 23a239de069b..a739b71decc0 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/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/AsyncAnalyzeIamPolicy.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicy/SyncAnalyzeIamPolicy.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunning.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/AsyncAnalyzeIamPolicyLongrunningLRO.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzeiampolicylongrunning/SyncAnalyzeIamPolicyLongrunning.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/AsyncAnalyzeMove.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/analyzemove/SyncAnalyzeMove.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/AsyncBatchGetAssetsHistory.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgetassetshistory/SyncBatchGetAssetsHistory.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/AsyncBatchGetEffectiveIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/batchgeteffectiveiampolicies/SyncBatchGetEffectiveIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/AsyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createfeed/SyncCreateFeedString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/AsyncCreateSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryFoldernameSavedqueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryOrganizationnameSavedqueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryProjectnameSavedqueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/createsavedquery/SyncCreateSavedQueryStringSavedqueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/AsyncDeleteFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedFeedname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletefeed/SyncDeleteFeedString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/AsyncDeleteSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQuerySavedqueryname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/deletesavedquery/SyncDeleteSavedQueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/AsyncExportAssetsLRO.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/exportassets/SyncExportAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/AsyncGetFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedFeedname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getfeed/SyncGetFeedString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/AsyncGetSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQuerySavedqueryname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/getsavedquery/SyncGetSavedQueryString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/AsyncListAssetsPaged.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsResourcename.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listassets/SyncListAssetsString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/AsyncListFeeds.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeeds.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listfeeds/SyncListFeedsString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueries.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/AsyncListSavedQueriesPaged.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueries.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesFoldername.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesOrganizationname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesProjectname.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/listsavedqueries/SyncListSavedQueriesString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/AsyncQueryAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/queryassets/SyncQueryAssets.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/AsyncUpdateFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatefeed/SyncUpdateFeedFeed.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/AsyncUpdateSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuery.java diff --git a/owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java similarity index 100% rename from owl-bot-staging/java-asset/v1/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/updatesavedquery/SyncUpdateSavedQuerySavedqueryFieldmask.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1/assetservice/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/assetservice/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPolicies.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchalliampolicies/SyncSearchAllIamPoliciesStringString.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/AsyncSearchAllResourcesPaged.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResources.java diff --git a/owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java similarity index 100% rename from owl-bot-staging/java-asset/v1p1beta1/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/searchallresources/SyncSearchAllResourcesStringStringListstring.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p1beta1/assetservice/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/assetservice/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/AsyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/createfeed/SyncCreateFeedString.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/AsyncDeleteFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedFeedname.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/deletefeed/SyncDeleteFeedString.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/AsyncGetFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedFeedname.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/getfeed/SyncGetFeedString.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/AsyncListFeeds.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeeds.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/listfeeds/SyncListFeedsString.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/AsyncUpdateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeed.java diff --git a/owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeedFeed.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeedFeed.java similarity index 100% rename from owl-bot-staging/java-asset/v1p2beta1/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/updatefeed/SyncUpdateFeedFeed.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p2beta1/assetservice/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/assetservice/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssets.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/AsyncListAssetsPaged.java diff --git a/owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/SyncListAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/SyncListAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p5beta1/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/listassets/SyncListAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p5beta1/assetservice/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/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssets.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/AsyncExportAssetsLRO.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservice/exportassets/SyncExportAssets.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/assetservicesettings/exportassets/SyncExportAssets.java diff --git a/owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.java b/java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.java similarity index 100% rename from owl-bot-staging/java-asset/v1p7beta1/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.java rename to java-asset/samples/snippets/generated/com/google/cloud/asset/v1p7beta1/stub/assetservicestubsettings/exportassets/SyncExportAssets.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) -}